|
|
HP-UX Reference > Pputs(3S)HP-UX 11i Version 2: December 2007 Update |
|
NAMEputs(), fputs(), puts_unlocked(), fputs_unlocked() — put a string on a stream DESCRIPTIONputs() writes the null-terminated string pointed to by s, followed by a newline character, to the standard output stream stdout. fputs() writes the null-terminated string pointed to by s to the named output stream, but does not append a newline character. Neither function writes the terminating null character. RETURN VALUEUpon successful completion, these routines return a nonnegative number. Otherwise they return EOF, set the error indicator for the stream, and set errno to indicate the error. ERRORSThese routines fail if, either the stream is unbuffered or stream's buffer needed to be flushed causing an underlying write() call to be invoked, and:
Additional errno values may be set by the underlying write() function (see write(2)). WARNINGSputs_unlocked() and fputs_unlocked() are obsolescent interfaces supported only for compatibility with existing DCE applications. New multithreaded applications should use puts() and fputs(). SEE ALSOferror(3S), flockfile(3S), fopen(3S), fread(3S), printf(3S), putc(3S), orientation(5), thread_safety(5). |
|