一、c语言的File,其类型声明,在stdio.h中
1 struct _iobuf { 2 char *_ptr; 3 int _cnt; 4 char *_base; 5 int _flag; 6 int _file; 7 int _charbuf; 8 int _bufsiz; 9 char *_tmpfname; 10 }; 11 typedef struct _iobuf FILE;
文件指针,是指向该结构体类型的指针。
一、c语言的File,其类型声明,在stdio.h中
1 struct _iobuf { 2 char *_ptr; 3 int _cnt; 4 char *_base; 5 int _flag; 6 int _file; 7 int _charbuf; 8 int _bufsiz; 9 char *_tmpfname; 10 }; 11 typedef struct _iobuf FILE;
文件指针,是指向该结构体类型的指针。