Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Turbo C - <b>ctrlbrk() set control-break handler</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
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.

See Also: longjmp() setjmp()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson