《C语言函数速查》K开头的函数

《C语言函数速查》K开头的函数


深入了解IT/互联网行业及岗位,请参阅通用IT/互联网岗位招聘计划(最新全岗版)
深入了解职业晋升及学习路线,请参阅最优职业晋升路线和课程学习指南(最新全栈版)


内容导航

  • 01、—

函数名: kbhit
功 能: 检查当前按下的键
用 法: int kbhit(void);
程序例:

#include <conio.h>

int main(void)
{
cprintf(“Press any key to continue:”);
while (!kbhit()) /* do nothing */ ;
cprintf("\r\nA key was pressed…\r\n");
return 0;
}

函数名: keep
功 能: 退出并继续驻留
用 法: void keep(int status, int size);
程序例:

/***NOTE:
This is an interrupt service routine. You
can NOT compile t