www.delorie.com/djgpp/doc/libc/libc_289.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ 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();


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2004   by DJ Delorie     Updated Apr 2004