流状态Stream States

下图中显示了流的有效状态及状态转换。The valid states, and state transitions, for a stream are shown in the following figure.

流Stream

每个圆圈代表一种稳定的状态。Each of the circles denotes a stable state. 每一行代表由对流进行的函数调用所导致的转换。Each of the lines denotes a transition that can occur as the result of a function call that operates on the stream. 五组函数可以导致状态转换。Five groups of functions can cause state transitions.

前三个组中的函数在 <stdio.h> 中声明:Functions in the first three groups are declared in <stdio.h>:

另请参阅See Also

文件和流Files and Streams