This preview shows page 1. Sign up to view the full content.
Unformatted text preview: from the stdio library for the same output stream. RETURN VALUES fputc() , putc() and putchar() return the character written as an unsigned char cast to an int or EOF on error. puts() and fputs() return a non - negative number on success, or EOF on error. CONFORMING TO ANSI - C, POSIX.1 BUGS It is not advisable to mix calls to output functions from the stdio library with low - lev el calls to write() for the file descriptor associated with the same output stream; the results will be undefined and very probably not what you want. SEE ALSO write (2), fopen (3), fwrite (3), scanf (3), gets (3), fseek (3), ferror (3) GNU April 4, 1993 1...
View Full Document
This note was uploaded on 10/05/2009 for the course COMP 2510 taught by Professor A during the Spring '06 term at BC.
- Spring '06