Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- 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>

 void       cputs(str);
 char       *str;                        Pointer to output string

    cputs() writes a null-terminated string to the console.

    Returns:    There is no return value.

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

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

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

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

         main()
         {
             cputs(string);
         }

See Also: putch()

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