### puts -- Write a String

Format

>     #include <stdio.h>
>     int puts(const char *string);

Language Level: ANSI, POSIX, XPG4
puts writes the given string to the standard output stream stdout it also appends a new-line character to the output. The terminating null character is not written.

Return Value
puts returns EOF if an error occurs. A nonnegative return value indicates that no error has occurred.

Example
This example writes Hello World to stdout.

    #include <stdio.h>

    int main(void)
    {
      if ( puts("Hello World") == EOF )
        printf( "Error in puts\n" );
      return 0;

      /*********************************
         The output should be:

         Hello World
      *********************************/
    }

_cputs -- Write String to Screen
fputs -- Write String
gets -- Read a Line
putc - putchar -- Write a Character
<stdio.h>