| cplusplus.com > reference > cstdio > puts | 
| 
puts
 <stdio.h>  | 
| cplusplus.com | 
 Output a string to stdout.
 
Copies the string to standard output stream (stdout) and
appends a new line character (\n).
Parameters.
 Return Value.
 
On success, a non-negative value is returned.
 
On error EOF value is returned.
 Example.
/* puts example : hello world! */
#include <stdio.h>
int main ()
{
  char string [] = "Hello world!";
  puts (string);
}