www.pudn.com > ASYNC13.rar > GETLCR.C
/* A module of ASYNCx.LIB version 1.02 */ #include#include "asyncdef.h" /************************************************************** Return the value of the Line Control Register. Return -1 if the port is not open. **************************************************************/ int a_getlcr(ASYNC *p) {if (p) return(inportb(p->base+LCR)); return -1; } /* end of a_getlcr(p) */