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.

Example 3IntroductionStreams and FILE objectsBufferingOpening a StreamReading and writing a streamFully buffered I/OLine buffered I/OUnbuffered I/OANSI C buffering requirementsChanging the default bufferingExamples#include #include // needed for sleep()int main(int argc, char *argv[]){}while(1){printf("Hello, program is runing right now");sleep(1);}<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!