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

01.01.2013 Views

···- ·

PUTS ( 3S ) PUTS ( 3S ) NAME puts, fputs - put a string on a stream SYNOPSIS #include int puts (s) ehar •s; int fputs (s, stream) ehar •s; FILE •stream; DESCRIPTION Puts writes the null-terminated string pointed to by s, followed by a new-line character, to the standard output stream stdout. Fputs writes the null-terminated string pointed to by s to the named output stream. Neither function writes the terminating null character. DIAGNOSTICS Both routines return EOF on error. This will happen if the routines try to write on a file that has not been opened for writing. SEE ALSO ferror(3S), fopen(3S), fread(3S), printf(3S), putc(3S). NOTES Puts appends a new-line character while fputs does not. - 1 -

···- ·

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

Saved successfully!

Ooh no, something went wrong!