puts(3S) puts(3S)
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 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.
Errors
On success both routines return the number of characters
written; otherwise they return EOF.
REFERENCES
abort(3C), exit(2), fclose(3S), ferror(3S), fopen(3S),
fprintf(3S), fread(3S), lseek(2), putc(3S), stdio(3S),
write(2)
NOTICES
puts appends a new-line character while fputs does not.
Copyright 1994 Novell, Inc. Page 1