#include stdio.h// ----------------------------// ----------------------------int main () {char buf[BUFSIZ];
编程学习网为您整理以下代码实例,主要实现:C语言库setbuf()函数,希望可以帮到各位朋友。
#include <stdio.h>
// ----------------------------
// ----------------------------
int main () {
char buf[BUFSIZ];
setbuf(stdout, buf);
puts("This is yiibai");
fflush(stdout);
return(0);
}