Skip to content
On this page

setvbuf()


标签:linux/api  

函数原型

c
#include <stdio.h>
int setvbuf(FILE *stream, char *buf, int mode, size_t size);

设置 IO 的缓冲模式

mode 参数:

  • _IONBF unbuffered
  • _IOLBF line buffered
  • _IOFBF fully buffered

Last updated: