[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

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

ANSI/ISO C No
POSIX No

Example

 
int ints_were_enabled;

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