www.pudn.com > ASYNC13.rar > GETLSR.C


/* A module of ASYNCx.LIB version 1.02 */ 
 
#include  
#include "asyncdef.h" 
 
/************************************************************** 
 Return the value of the Line Status Register. If the 
 specified port is not open, return -1. 
 **************************************************************/ 
 
int a_getlsr(ASYNC *p) 
{if (p) 
   return(inportb(p->base+LSR)); 
 return -1; 
} /* end of a_getlsr(p) */