www.pudn.com > ASYNC13.rar > OFLUSH.C
/* A module of ASYNCx.LIB version 1.02 */ #include#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) */