setbuf.c

来自「vc library 韩国语版 希望对大家又帮助」· C语言 代码 · 共 16 行

C
16
字号
#include <stdio.h>
#include <conio.h>
char outbuf[BUFSIZ];
int main(void)
{
   setbuf(stdout, outbuf);
   puts("This is a test of buffered output.");
   puts("This output will go into outbuf");
   puts("and won't appear until the buffer");
   puts("fills up or we flush the stream.");
   getch();
   fflush(stdout);
   getch();
   return 0;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?