Go to the first, previous, next, last section, table of contents.


disable

Syntax

#include <dos.h>

int disable(void);

Description

This function disables interrupts.

See section enable.

Return Value

Returns nonzero if the interrupts had been enabled before this call, zero if they were already disabled.

Portability

not ANSI, not POSIX

Example

int ints_were_enabled;

ints_were_enabled = disable();
. . . do some stuff . . .
if (ints_were_enabled)
  enable();


Go to the first, previous, next, last section, table of contents.