COHERENT manpages
This page displays the COHERENT manpage for puts() [Write string onto standard output].
List of available manpages
Index
puts() -- STDIO Function (libc)
Write string onto standard output
#include <stdio.h>
int puts(string)
char *string
puts() appends a newline character onto the string to which string points,
and writes the result onto the standard output. If all goes well, it
returns a nonnegative value (not necessarily -1); if an error occurs, it
returns EOF.
Example
The following uses puts() to write a string on the screen.
#include <stdio.h>
main()
{
puts("This is a string.");
}
See Also
fputs(),
libc
ANSI Standard, §7.9.7.10
POSIX Standard, §8.1
Notes
For historical reasons, fputs() outputs the string unchanged, whereas
puts() appends a newline character.









