COMM-DRV/Lib: IsReceiveBufferEmpty() Returns true if receive buffer is empty

Description-

Returns true if the receive buffer is empty.

Syntax-

stat = IsReceiveBufferEmpty(port);

On Entry-

int port;

Port previously opened with OpenComPort().

On Exit-

int stat;

0 If receive buffer is not empty.

1 If receive buffer is empty.

See Also-

ReceiveBufferSize()
SpaceInReceiveBuffer()

Example-

#include
int port=0;
int stat;
if ((stat = IsReceiveBufferEmpty(port)) == 1)
    {
    printf("Buffer is empty\n");
    }