/* Copyright (C) Magna Carta Software, Inc. 1990, 1991. All Rights Reserved C COMMUNICATIONS TOOLKIT COMMIO.C -- Basic serial I/O functions (no data translation) */ #include /* C_INCHAR -- See if a byte has been received at the designated serial port. If so return it. This function does not wait for a character to arrive. Return: the byte read, or -1 if no byte is ready. */ short c_inchar(COMM_PORT *p) { if ((*p->rxstat)(p)) return ((*p->c_read)(p)); return (-1); }