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


enable

Syntax

#include <dos.h>

int enable(void);

Description

This function enables interrupts.

See section disable.

Return Value

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

Portability

not ANSI, not POSIX

Example

int ints_were_enabled;

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


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