一、linux下高级应用编程--stdio.h
来源:互联网 发布:辽宁广电网络 编辑:程序博客网 时间:2024/04/28 19:51
stdio.h 标准函数输入/输出
<stdio.h>头文件中用一些整数定义下列一些宏:
- BUFSIZ:<stdio.h>中缓冲区的大小
- _IOFBF:输入/输出全缓冲.
- _IOLBF:输入/输出行缓冲.当向缓冲区输入一个换行符时,缓冲区的内容会被flush。
- _IONBF:输入/输出不缓冲.
- L_ctermid
- [CX] Maximum size of character array to holdctermid() output.
- L_tmpnam
- Maximum size of character array to hold tmpnam() output.
- SEEK_CUR
- Seek relative to current position.
- SEEK_END
- Seek relative to end-of-file.
- SEEK_SET
- Seek relative to start-of-file.
The following macros shall be defined as positive integer constant expressions which denote implementation limits:
- {FILENAME_MAX}
- Maximum size in bytes of the longest filename string that the implementation guarantees can be opened.
- {FOPEN_MAX}
- Number of streams which the implementation guarantees can be open simultaneously. The value is at least eight.
- {TMP_MAX}
- Minimum number of unique filenames generated by tmpnam(). Maximum number of timesan application can call tmpnam() reliably. The value of {TMP_MAX} is at least 25.[XSI] On XSI-conformant systems, the value of {TMP_MAX} is at least 10000.
The following macro name shall be defined as a negative integer constant expression:
- EOF
- End-of-file return value.
The following macro name shall be defined as a null pointer constant:
- NULL
- Null pointer.
The following macro name shall be defined as a string constant:
- P_tmpdir
- [XSI] Default directory prefix fortempnam().
定义函数:int fflush(FILE *stream)
函数说明:fflush()会强迫将缓冲区内的数据写回参数stream指定的文件中。如果参数stream为NULL, fflush()会将所有打开的文件数据更新。
返回值 :成功则返回0, 失败返回EOF, 错误代码存于errno中
- 一、linux下高级应用编程--stdio.h
- linux c编程 “stdio.h:没有该文件或目录”
- 【Linux的高级应用编程】Linux下的多线程编程
- unix高级编程下apue.h安装
- [疑问]在linux内核编程 不能include <stdio.h>的原因
- android stdio gradle高级使用(一)
- stdio.h
- stdio.h
- stdio.h
- Linux 下DHCP高级应用
- 【Linux的高级应用编程】Linux下的多进程编程
- Windows phone 7 高级编程——使用visual stdio 、silverlight与XNA进行应用和游戏开发
- 【Linux的高级应用编程】Linux下的线程实现机制分析
- linux下应用编程
- 转:C语言头文件下包含函数(math.h stdio.h stdlib.h string.h)
- 【嵌入式Linux学习七步曲之第七篇 Linux的高级应用编程】Linux下的多进程编程
- 【嵌入式Linux学习七步曲之第七篇 Linux的高级应用编程】Linux下的多线程编程
- linux下用gcc编译c程序时遇到的问题: error: stdio.h: 没有那个文件或目录
- CAN总线的通信错误及其处理
- NSSet之于NSArray
- Notes On <The Definitive Guide to HTML5> - 02
- FLEX+FMS实现远程共享、电子白板、远程交流会议的功能
- WP8:黑莓的致死打击
- 一、linux下高级应用编程--stdio.h
- Android 实现自定义Spinner
- 通过.class文件查看JDK版本
- vs2010 LPCTSTR 到 const char* 的转换 inet_addr LPCTSTR
- javax.xml.stream.XMLStreamException: Prefix cannot be null
- Java中如何获取spring中配置的properties属性文件内容
- 编译qt/embedded应用程序时出现的segmentation fault 问题解决办法
- Poco::TCPServer框架解析
- 理解C语言刁钻定义语句的斩麻快刀:自内向外读