Exercise: Buffering
Consider the effects of buffering on a "copy" program:
- use unbuffered low-level system calls, char-by-char
- use unbuffered low-level system calls, block-by-block
- use buffered functions from
stdio.h , char-by-char
- use buffered functions from
stdio.h , line-by-line
|