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>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 'stdout', the standard output stream, and
    replaces the string's terminating null character ('\0') with a
    new-line  character ('\n').

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

 Compatibility: MSC version 4.0 returns the last character ouptut or an
                EOF to indicate 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