1. Preliminaries
|
|
Input and output facilities are provided by the standard library <stdio.h> and not by the language itself. |
A text stream consists of a series of lines ending with ‘\n’. The standard library takes care of conversion from ‘\r\n’ ’\n’ |
A binary stream consists of a series of raw bytes. |
The streams provided by standard library are buffered. |
|
Written in C |
Name |
Remark |
stdin |
standard input file |
connected to the keyboard |
stdout |
standard output file |
connected to the screen |
stderr |
standard error file |
connected to the screen |
|
– Output written on stderr normally appears on the screen even if the standard output is redirected. |
|