getmcr.c
来自「主要是异步通讯编程」· C语言 代码 · 共 16 行
C
16 行
/* A module of ASYNCx.LIB version 1.02 */
#include <dos.h>
#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) */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?