•C语言中,每个被使用的文件都在内存中开辟一块内存,用来存放文件的有关信息,这些信息都保存在一个结构体变量中。 struct _iobuf { char *_ptr; int _cnt; char *_base; int _flag; int _file; int _charbuf; int _bufsiz; char *_tmpfname; }; typedef struct _iobuf FILE;