大小: 687
备注:
|
← 于2008-02-23 15:34:55修订的的版本4 ⇥
大小: 687
备注: converted to 1.6 markup
|
删除的内容标记成这样。 | 加入的内容标记成这样。 |
行号 2: | 行号 2: |
[[Navigation(slides)]] | <<Navigation(slides)>> |
幻灯片模式 ^ |< << 幻灯片206/221 >> >| |
B.1.5 Direct Input and Output Functions
size_t fread(void *ptr, size_t size, size_t nobj, FILE *stream)
- fread reads from stream into the array ptr at most nobj objects of size size. fread returns the number of objects read; this may be less than the number requested. feof and ferror must be used to determine status.
size_t fwrite(const void *ptr, size_t size, size_t nobj, FILE *stream)
- fwrite writes, from the array ptr, nobj objects of size size on stream. It returns the number of objects written, which is less than nobj on error.