Description-
Returns true if a break signal was detected since the last call to this function.
Syntax-
stat = IsBreak(port);
On Entry-
int port;
Port previously opened with InitializePort() or OpenComPort().
On Exit-
int stat;
0 If break is not detected.
1 If break is detected.
See Also-
IsBreak()
IsCarrierDetect()
IsCts()
IsDsr()
IsFramingError()
IsInputOverrun()
IsOverrunError()
IsParityError()
IsRing()
Example-
#include “comm.h”
int port=0;
int stat;
if ((stat = IsBreak(port)) == 1)
{
printf(“Break occurred\n”);
}