The stdio.h Library (cont)
For C programs using the stdio.h library:
- need to
#include <stdio.h>
- need to link library (automatic)
The stdin /stdout /stderr streams
- are opened automatically when the program starts
- closed automatically when the program finishes
Other streams must be opened/closed by the programmer
(C programs have a limit on number of simultaneously open streams (e.g. 1024))
|