Previous Page
Next Page

puts

Writes a text line to standard output

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

The puts( ) function writes the string referenced by its pointer argument to the standard output stream, followed by a newline character ('\n'). The return value is non-negative, or EOF if an error occurs.

Example

See the examples at qsort( ), setjmp( ), and signal( ) in this chapter.

See Also

fputs( ), gets( ), fputws( )


Previous Page
Next Page