NAME | SYNOPSIS | DESCRIPTION | RETURN VALUES | NOTES | ATTRIBUTES | SEE ALSO
#include <stdio.h>int puts(const char * s);
The puts function writes the null-terminated string pointed to by s , followed by a new-line character, to the standard output stream stdout.
The fputs function writes the null-terminated string pointed to by s to the named output stream .
Neither function writes the terminating null character.
Both routines return EOF on error. This will happen if the routines try to write to a file that has not been opened for writing.
The puts appends a new-line character while fputs does not.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
NAME | SYNOPSIS | DESCRIPTION | RETURN VALUES | NOTES | ATTRIBUTES | SEE ALSO