delorie.com/djgpp/doc/libc/libc_133.html   search  
libc.a reference

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

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.

Portability

ANSI/ISO C No
POSIX No

Example

 
int ints_were_enabled;

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


  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004