Manual page for puts(3S)
puts, fputs - put a string on a stream
SYNOPSIS
#include <stdio.h>
int puts(const char *s);
int fputs(const char *s,
FILE *stream);
MT-LEVEL
MT-Safe
DESCRIPTION
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.
RETURN VALUES
On success both routines return the number of characters written;
otherwise they return
EOF.
SEE ALSO
write.2
intro.3
fclose.3s
ferror.3s
fopen.3s
printf.3s
putc.3s
stdio.3s
NOTES
puts()
appends a new-line character while
fputs()
does not.
Created by unroff & hp-tools.
© by Hans-Peter Bischof. All Rights Reserved (1997).
Last modified 21/April/97