PUTS(3S) — UNIX 3.0
NAME
puts, fputs − put a string on a stream
SYNOPSIS
#include <stdio.h>
int puts (s)
char ∗s;
int fputs (s, stream)
char ∗s;
FILE ∗stream;
DESCRIPTION
Puts copies the null-terminated string s to the standard output stream stdout and appends a new-line character.
Fputs copies the null-terminated string s to the named output stream.
Neither routine copies the terminating null character.
DIAGNOSTICS
Both routines return EOF on error.
SEE ALSO
ferror(3S), fopen(3S), fwrite(3S), gets(3S), printf(3S), putc(3S).
NOTES
Puts appends a new-line, fputs does not.
May 16, 1980