Standard Input/Output Library - University of Windsor
Standard Input/Output Library - University of Windsor
Standard Input/Output Library - University of Windsor
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
IntroductionStreams and FILE objectsBufferingOpening a StreamReading and writing a streamSingle-character <strong>Output</strong> functionsint putc(int c, FILE *fp): print a single characterint fputc(int c, FILE *fp): same as putc()except that, putc() can be implemented as a macrowhereas fputc() cannot.int putchar(int c): equivalent to putc(c, stdin).All these functions return the printed character c as an intwhen successful and -1 otherwise.<strong>Standard</strong> <strong>Input</strong>/<strong>Output</strong> <strong>Library</strong>60-256 System Programming