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


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