Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Borland C++ 2.x ( with Turbo C ) - <b>cputs() write a string to the console</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 cputs()                 Write a String to the Console

 #include   <conio.h>

 int cputs(str);
 const char *str;                        Pointer to output string

    cputs() writes a null-terminated string to the current text window.

       Returns:     The last character printed.

         Notes:     A carriage-return-line-feed combination is not
                    automatically appended to the string after writing.

   Portability:     IBM PC and compatibles only.

   -------------------------------- Example ---------------------------------

    The following statement prints a string to the console, along with a
    carriage-return and line-feed.

           #include <conio.h>
           char *string = "Print this line on the screen. \r\n";

           main()
           {
               cputs(string);
           }


See Also: putch()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson