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>puts() write string to stdout</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 puts()                  Write String to Stdout

 #include   <stdio.h>

 int        puts(string);
 const char *string;                     String to be output

    puts() copies 'string' to the standard output stream 'stdout' and
    replaces the string's terminating null character ('\0') with a
    new-line  character ('\n').

    Returns:    The last character written, which is always a new-line
                character. A return value of EOF indicates an error.

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

           #include <stdio.h>

           int pause;

           main()
           {
               puts("Press any key to proceed...");
               pause = getchar();
           }


See Also: fputs() gets()

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