PUTS
Section: Standard I/O Functions (3S)
Updated: August 1, 1992
Index
Return to Main Contents
NAME
puts, fputs - put a string on a stream
SYNOPSIS
#include <stdio.h>
int puts(const char *s);
int fputs(const char *s, FILE *stream);
DESCRIPTION
Puts
copies the null-terminated string
s
to the standard output stream
stdout
and appends a
newline character.
Fputs
copies the null-terminated string
s
to the named output
stream.
No newline character is appended.
Neither routine copies the terminal null character.
RETURN VALUE
Puts
and
fputs
returns EOF for unsuccessful calls and stores an error code in
errno, otherwise it returns zero.
ERRORS
The underlying function of
puts
and
fputs
is write(2).
The error conditions specified for write(2)
apply to
puts
and
fputs.
SEE ALSO
write(2)
fopen(3S),
gets(3S),
putc(3S),
printf(3S)
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- RETURN VALUE
-
- ERRORS
-
- SEE ALSO
-
This document was created by
man2html,
using the manual pages.
Time: 00:56:56 GMT, September 26, 2024