ctrlbrk()                Set Control-Break Handler
 
 #include   <dos.h>
 
 void       ctrlbrk(fptr);
 int        (*fptr)(void);               Handler function
 
    ctrlbrk() sets a new control-break handler function pointed to by
    'fptr'.  The interrupt vector 0x23 is modified to call the named
    function.  ctrlbrk() establishes a DOS interrupt handler that calls
    the named function indirectly.
 
    The handler function may perform any number of operations and system
    calls.  The handler function does not have to return; it may use
    longjmp() to return to any point in the program.
 
    Returns:    ctrlbrk() returns nothing.  0 is returned by the handler
                function to abort the current program.  Any other value
                causes the program to resume execution.

Seealso:



This page last updated on Fri Nov 30 10:48:32 MSK 2001
Copyright © 1992-2001, Vitaly Filatov, Moscow, Russia
Webmaster