功能:把缓冲区与流相关
int setvbuf(FILE* stream,char*buf,int type,unsigned size);
参数:stream:指向流的指针;
buf:期望缓冲区的地址;
type:期望缓冲区的类型;
_IOFBF(满缓冲):
_IOLBF(行缓冲):
_IONBF(无缓冲):
功能:把缓冲区与流相关
int setvbuf(FILE* stream,char*buf,int type,unsigned size);
参数:stream:指向流的指针;
buf:期望缓冲区的地址;
type:期望缓冲区的类型;
_IOFBF(满缓冲):
_IOLBF(行缓冲):
_IONBF(无缓冲):