Borland C++ reference

getcbrk

raw OCR

Gets control-break setting.

Defined in header <dos.h>

Syntax

#include <dos.h>
int getcbrk(void);

Portability

DOSUNIXWindowsANSI CC++ only
■■

Remarks

getcbrk uses the DOS system call 0x33 to return the current setting of control-break checking.

Return value

getcbrk returns 0 if control-break checking is off, or 1 if checking is on.

See also

Example

#include <stdio.h>  '
#include <dos.h>

int main(void)
{
   if (getcbrkO)
      printf ("Cntrl-brk flag is on\n");
   else
      printf("Cntrl-brk flag  is off\n");
   return 0;

Differences from modern implementations

Nothing recorded yet.

Modern references

These are search links, not yet checked by hand.