NAME

puts, fputs - put a string on a stream

SYNOPSIS

#include <stdio_p.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 terminal null character.

SEE ALSO

ferror(3P) , fopen(3P) , fwrite(3P) , gets(3P) , printf(3P) , putc(3P).

DIAGNOSTICS

Both routines return EOF on error.

NOTES

puts appends a new-line, fputs does not.