版本1和3间的区别 (跳过第2版)
于2006-06-20 20:31:54修订的的版本1
大小: 635
编辑: czk
备注:
于2007-08-07 19:51:44修订的的版本3
大小: 687
编辑: czk
备注:
删除的内容标记成这样。 加入的内容标记成这样。
行号 1: 行号 1:
## page was renamed from Standard Library/B.01.5 Direct Input and Output Functions
行号 11: 行号 12:



[[Navigation(siblings)]]

Navigation(slides)

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.

TCPL/B.01.5_Direct_Input_and_Output_Functions (2008-02-23 15:34:55由localhost编辑)

ch3n2k.com | Copyright (c) 2004-2020 czk.