Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Microsoft C 6.0 - <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);
 char       *str;                        Pointer to output string

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

    Returns:    Zero, on success; non-zero is returned on failure.

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

 Compatibility: MSC verson 4.0 did not generate a return value.
   -------------------------------- 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