1PUTS(3S)                                                              PUTS(3S)
2
3
4

NAME

6       puts, fputs - put a string on a stream
7

SYNOPSIS

9       #include <stdio.h>
10
11       puts(s)
12       char *s;
13
14       fputs(s, stream)
15       char *s;
16       FILE *stream;
17

DESCRIPTION

19       Puts  copies the null-terminated string s to the standard output stream
20       stdout and appends a newline character.
21
22       Fputs copies the null-terminated string s to the named output stream.
23
24       Neither routine copies the terminal null character.
25

SEE ALSO

27       fopen(3S), gets(3S), putc(3S), printf(3S), ferror(3S)
28       fread(3S) for fwrite
29

BUGS

31       Puts appends a newline, fputs does not, all in  the  name  of  backward
32       compatibility.
33
34
35
367th Edition                      May 15, 1985                         PUTS(3S)
Impressum