Syntax
#include <stdio.h> int puts(const char *string);Description
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.
puts returns EOF if an error occurs. A nonnegative return value indicates that no error has occurred.
This example writes Hello World to stdout.
#include <stdio.h> int main(void) { if (EOF == puts("Hello World")) printf("Error in puts\n"); return 0; /**************************************************************************** The output should be: Hello World ****************************************************************************/ }Related Information