09.07.2015 Views

Standard Input/Output Library - University of Windsor

Standard Input/Output Library - University of Windsor

Standard Input/Output Library - University of Windsor

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

IntroductionStreams and FILE objectsBufferingOpening a StreamReading and writing a streamString/Line <strong>Output</strong> functions<strong>Output</strong> functions:fputs(const char *str, FILE *fp)Write the NULL terminated string, stored in str, to astream.puts(const char *str)Write the NULL terminated string, stored in str, to stdoutand add a newline character at the end.Note that NULL character at the end is not written by bothfunctions.<strong>Standard</strong> <strong>Input</strong>/<strong>Output</strong> <strong>Library</strong>60-256 System Programming

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

Saved successfully!

Ooh no, something went wrong!