/* Copyright (C) Magna Carta Software, Inc. 1990, 1991. All Rights Reserved. C COMMUNICATIONS TOOLKIT CPUT.C -- Send a byte out of a port. */ #include /* C_PUTC_ -- send a byte out of the designated serial port. Note: Under polling, the UART status register is read. Under interrupts, the transmit buffer free space is read. This is blocking I/O. To avoid a block, call c_txcount() to find transmit free space before sending. */ short c_putc_(COMM_PORT *p, short c) { while ((*p->txstat)(p) == 0); return ((*p->c_write)(p, c)); }