COMM-DRV/Lib: IsParityError() Returns true if a parity error occurred

Description-

Returns true if a parity error occurred since the last call to this function.

Syntax-

stat = IsParityError(port);

On Entry-

int port;

Port previously opened with InitializePort() or OpenComPort().

On Exit-

int stat;

0 If parity error did not occur.

1 If parity error occurred.

See Also-

IsBreak()
IsCarrierDetect()
IsCts()
IsDsr()
IsFramingError()
IsInputOverrun()
IsOverrunError()
IsParityError()
IsRing()

Example-

#include "comm.h"
int port=0;
 int stat;
if ((stat = IsParityError(port)) == 1)
     {
      printf("Parity Error occurred\n");
     }