www.pudn.com > ASYNC13.rar > GETMCR.C
/* A module of ASYNCx.LIB version 1.02 */ #include#include "asyncdef.h" /************************************************************** Return the value of the Modem Control Register. If the port is not open, return -1. **************************************************************/ int a_getmcr(ASYNC *p) {if (p) return(inportb(p->base+MCR) & 0x1f); return -1; } /* end of a_getmcr(p) */