www.delorie.com/djgpp/doc/libc-2.01/libc_245.html   search  
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.

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.

  prev next   webmaster     delorie software   privacy  
  Copyright © 1997     Updated Apr 1997