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>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);
 char       *string;                     String to be output

    puts() copies 'string' to the standard output stream 'stdout'. The
    string's terminating null character ('\0') is replaced 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 order.

  -------------------------------- 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