01.01.2013 Views

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

PUTS ( 3S ) PUTS ( 3S )<br />

NAME<br />

puts, fputs - put a string on a stream<br />

SYNOPSIS<br />

#include <br />

int puts (s)<br />

ehar •s;<br />

int fputs (s, stream)<br />

ehar •s;<br />

FILE •stream;<br />

DESCRIPTION<br />

Puts writes the null-terminated string pointed to by s, followed<br />

by a new-line character, to the standard output stream stdout.<br />

Fputs writes the null-terminated string pointed to by s to the<br />

named output stream.<br />

Neither function writes the terminating null character.<br />

DIAGNOSTICS<br />

Both routines return EOF on error. This will happen if the routines<br />

try to write on a file that has not been opened for writing.<br />

SEE ALSO<br />

ferror(3S), fopen(3S), fread(3S), printf(3S), putc(3S).<br />

NOTES<br />

Puts appends a new-line character while fputs does not.<br />

- 1 -

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!