15.07.2013 Views

Software Architecture: Foundations, Theory, and Practice ... - Courses

Software Architecture: Foundations, Theory, and Practice ... - Courses

Software Architecture: Foundations, Theory, and Practice ... - Courses

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

<strong>Software</strong> <strong>Architecture</strong>: <strong>Foundations</strong>, <strong>Theory</strong>, <strong>and</strong> <strong>Practice</strong><br />

Framework #1: stdio<br />

St<strong>and</strong>ard I/O framework used in C programming language<br />

Each process is a filter<br />

Reads input from st<strong>and</strong>ard input (aka ‘stdin’)<br />

Writes output to st<strong>and</strong>ard output (aka ‘stdout’)<br />

Also a third, unbuffered output stream called st<strong>and</strong>ard error<br />

(‘stderr’) not considered here<br />

Low <strong>and</strong> high level operations<br />

getchar(…), putchar(…) move one character at a time<br />

printf(…) <strong>and</strong> scanf(…) move <strong>and</strong> format entire strings<br />

Different implementations may vary in details (buffering<br />

strategy, etc.)<br />

22

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

Saved successfully!

Ooh no, something went wrong!