setvbuf
来源:互联网 发布:java.equal 编辑:程序博客网 时间:2024/05/29 17:47
函数名: setvbuf
功 能: 把缓冲区与流相关
用 法: int setvbuf(FILE *stream, char *buf, int type, unsigned size);
参数:stream :指向流的指针 ;
buf : 期望缓冲区的地址;
type : 期望缓冲区的类型:
_IOFBF(满缓冲):当缓冲区为空时,从流读入数据。或者当缓冲区满时,向流写入数 据。
_IOLBF(行缓冲):每次从流中读入一行数据或向流中写入一行数据。
_IONBF(无缓冲):直接从流中读入数据或直接向流中写入数据,而没有缓冲区。
size : 缓冲区内字节的数量。
注意:This function should be called once the file associated with the stream has already been opened but before any input or output operation has taken place.
意思是这个函数应该在打开流后在任何对该流做输入输出之前,立即调用。
功 能: 把缓冲区与流相关
用 法: int setvbuf(FILE *stream, char *buf, int type, unsigned size);
参数:stream :指向流的指针 ;
buf : 期望缓冲区的地址;
type : 期望缓冲区的类型:
_IOFBF(满缓冲):当缓冲区为空时,从流读入数据。或者当缓冲区满时,向流写入数 据。
_IOLBF(行缓冲):每次从流中读入一行数据或向流中写入一行数据。
_IONBF(无缓冲):直接从流中读入数据或直接向流中写入数据,而没有缓冲区。
size : 缓冲区内字节的数量。
注意:This function should be called once the file associated with the stream has already been opened but before any input or output operation has taken place.
意思是这个函数应该在打开流后在任何对该流做输入输出之前,立即调用。
- setvbuf
- setvbuf
- setvbuf
- setvbuf()
- setvbuf
- setvbuf
- setvbuf()
- setvbuf()
- setvbuf.c
- setvbuf () 函数
- setbuf、setvbuf
- fprintf 和 setvbuf 说明
- setvbuf的使用
- 用setvbuf 实现setbuf
- setvbuf()创建缓冲区函数
- setvbuf实现setbuf
- setbuf 和setvbuf 简单介绍
- libevent学习笔记--setvbuf()函数
- memset
- fgetc()
- lstrcpy()
- GetPrivateProfileInt
- C++指针
- setvbuf
- memcpy
- ReadInteger Delphi
- Delphi IsPathDelimiter
- ORACLE处理 ORA-01033异常
- ORACLE ORA-00376
- Ansi对照表
- AnsiQuotedStr、AnsiExtractQuotedStr、AnsiDequotedStr Delphi
- Delphi常用类型及定义单元