setbuf.c
来自「OMAP1030 处理器的ARM 侧硬件测试代码 OMAP1030 是TI」· C语言 代码 · 共 28 行
C
28 行
/*****************************************************************************/
/* SETVBUF.C v2.24 */
/* Copyright (c) 1995-2002 Texas Instruments Incorporated */
/*****************************************************************************/
/*****************************************************************************/
/* Functions: */
/* SETBUF - Set the default buffering mode for a stream */
/*****************************************************************************/
#include <stdio.h>
/*****************************************************************************/
/* SETBUF - Set the default buffering mode for a stream */
/* */
/* This function calls SETVBUF, and sets the buffering mode to non- */
/* buffered if _BUF is NULL, or fully-buffered if _BUF is not NULL. */
/* */
/*****************************************************************************/
_CODE_ACCESS void setbuf(register FILE *_fp, char *_buf)
{
setvbuf(_fp, _buf, _buf ? _IOFBF : _IONBF, BUFSIZ);
return;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?