Application notes
Version 8 dated 15.03.00 182
Siemens Information and Communication Products
A
8.4.2.6 int FlushComm(idComDev, fnQueue)
int idComDev; /* communications-device identifier */
int fnQueue; /* queue to flush */
The FlushComm function flushes all characters from the transmission or receiving queue of the specified communications
device.
int FlushComm(idComDev, fnQueue)
Parameter Description
idComDev Specifies the communications device to be flushed. The OpenComm function returns this
value.
fnQueue Specifies the queue to be flushed. The transmission queue is flushed if this parameter is ze-
ro. The receiving queue is flushed if the parameter is 1.
Return value 0 if the function is successful.
< 0 if idComDev is not a valid device or if fnQueue is not a valid queue
> 0 if there is an error for the specified device. For a list of the possible error values, see the
GetCommError function.
Example None
Comments None
See also GetCommError, OpenComm