puts(3S) manual page
Table of Contents
puts, fputs - put a string on a stream
#include <stdio.h>
int
puts(const char *s);
int fputs(const char *s, FILE
*stream);
MT-Safe
puts() writes the string pointed to by s, followed by a new-line
character, to the standard output stream stdout (see intro(3)
).
fputs()
writes the null-terminated string pointed to by s to the named output stream.
Neither function writes the terminating null character.
On
success both routines return the number of characters written; otherwise
they return EOF
.
write(2)
, intro(3)
), fclose(3S)
, ferror(3S)
, fopen(3S)
,
printf(3S)
, putc(3S)
, stdio(3S)
puts() appends a new-line character
while fputs() does not.
Table of Contents