oflush.c
来自「异步通讯C语言例行子程序」· C语言 代码 · 共 19 行
C
19 行
/* A module of ASYNCx.LIB version 1.02 */
#include <dos.h>
#include "asyncdef.h"
/***************************************************
Discard any data that may be in p's output buffer.
***************************************************/
int a_oflush(register ASYNC *p)
{if (p)
{disable();
p->obufhead=p->obuftail=p->obuf;
enable();
return 0;
}
else
return -1;
} /* end of a_oflush(p) */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?