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

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.

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