disable(英语单词,函数)

2023-02-03 55阅读

温馨提示:这篇文章已超过541天没有更新,请注意相关的内容是否还可用!

disable

英语单词,函数

disable是指使失去能力,使伤残,使无资格的意思。disable[dis'eibl]vt. 1. 使失去能力[(+from)] 2. 使伤残[H] He was disabled in the accident. 他在那次事故中成了残废。 3. 【律】使无资格[(+from)] He is disabled from voting. 他失去了选举资格。

中文名disable
释义11. 使失去能力[(+from)] 2. 使伤残[H] 3使无资格[(+from)]
C函数函数名: disable 功 能: 屏蔽中断 用 法: void disable(void);

disable

disable【dis'eibl】vt.

1. 使失去能力【(+from)】

2. 使伤残【H】

He was disabled in the accident.

他在那次事故中成了残废。

3. 【律】使无资格【(+from)】

He is disabled from voting.

他失去了选举资格。

C函数

函数名: disable

功 能: 屏蔽中断

用 法: void disable(void);

程序例:

/***NOTE: This is an interrupt service

routine. You cannot compile this program

with Test Stack Overflow turned on and

get an executable file that operates

correctly. */

************************************

#include <stdio.h>

#include <dos.h>

#include <conio.h>

#define INTR 0X1C    /* The clock tick

interrupt */

void interrupt ( *oldhandler)(void);

int count=0;

void interrupt handler(void)

{/* disable interrupts during the handling ofthe interrupt */disable();/* increase the global counter */count++;/* reenable interrupts at the end of thehandler */enable();/* call the old routine */oldhandler();}int main(void)

{/* save the old interrupt vector */oldhandler = getvect(INTR);/* install the new interrupt handler */setvect(INTR, handler);/* loop until the counter exceeds 20 */while (count < 20)printf("count is %d",count);/* reset the old interrupt handler */setvect(INTR, oldhandler);return 0;}

参考资料

1.disable·可可查词

2.disable·海词网

相关阅读

目录[+]