- 1、本文档共37页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
C标准IO函数使用说明
Cstdio标准IO函数 Louis Young BUFSIZ Remarks BUFSIZ is the required user-allocated buffer for the setvbuf routine. EOF, WEOF EOF is returned by an I/O routine when the end-of-file (or in some cases, an error) is encountered. WEOF yields the return value, of type wint_t, used to signal the end of a wide stream, or to report an error condition. FILENAME_MAX This is the maximum permissible length for filename. FOPEN_MAX, _SYS_OPEN This is the maximum number of files that can be opened simultaneously. FOPEN_MAX is the ANSI-compatible name. _SYS_OPEN is provided for compatibility with existing code. TMP_MAX, L_tmpnam TMP_MAX is the maximum number of unique filenames that the tmpnam function can generate. L_tmpnam is the length of temporary filenames generated by tmpnam SEEK_CURR stdin, stdout, stderr FILE *stdin; FILE *stdout; FILE *stderr; struct _iobuf { char *_ptr; int _cnt; char *_base; int _flag; int _file; int _charbuf; int _bufsiz; char *_tmpfname; }; typedef struct _iobuf FILE; _IOLBF hese constants represent the type of buffer for setvbuf. The possible values are given by the following manifest constants: FILE struct _iobuf { char *_ptr; int _cnt; char *_base; int _flag; int _file; int _charbuf; int _bufsiz; char *_tmpfname; }; typedef struct _iobuf FILE; fpos_t typedef __int64 fpos_t; fopen, _wfopen Open a file. FILE *fopen( const char *filename, const char *mode ); FILE *_wfopen( const wchar_t *filename, const wchar_t *mode ); #include stdio.h FILE *stream, *stream2; void main( void ) { int numclosed; /* Open for read (will fail if file data does not exist) */ if( (stream = fopen( data, r )) == NULL ) printf( The file data was not opened\n ); else printf( The file data was opened\n ); /* Open for write */ if( (stream2 = fopen( data2, w+ )) == NULL )
您可能关注的文档
- CE6 OAL特点.doc
- chapter4金融工程.pdf
- chapter3金融工程.pdf
- corba编程实例.docx
- CrustalMovementintheN_省略_ithZhangbeiEart.pdf
- CounterSpy奖杯大全 反击间谍奖杯图鉴.pdf
- dao.文件.doc
- Do one thing at a time一次做一件事.doc
- eigrp stub命令及其参数的研究.doc
- 2025年学期新人教版三年级上册英语课件 Unit 6 Part A 第3课时 Letters and sounds.pptx
- 制动系统的特点项目一58课件.pptx
- 直接工程费价外运杂费填料费铁路工程施工组织与概预算78课件.pptx
- 主备用控制中心的切换LCF300型25课件.pptx
- 智能交通系统的相关技术任务三车辆自动驾驶技术王怡安徽交通6.pptx
- 智能交通监控系统任务三城市交通诱导系统诱导系统的组成王怡安.pptx
- 智能交通监控系统任务二城市交通监控系统王怡安徽交通67课件.pptx
- 直升机的特点和分类空气动力学基础与飞行原理86课件.ppt
- 直升机的飞行性能空气动力学基础与飞行原理67课件.ppt
- 职业形象塑造3职业教育国际邮轮乘务管理专业教学化妆与形象设.pptx
- 轴向拉压杆件的线应变和胡克定律张亚琴河北交通52课件.pptx
文档评论(0)