digitalmars.com                      
Last update Sun Mar 4 12:00:58 2018

controlc.h


controlc_close

Header
controlc.h
Prototype
void controlc_close(void);
Description
Removes a user supplied control c / break handler. The handler
should have previously been installed by controlc_open().
Compatibility
DOS Windows 3.x Phar Lap DOSX Win32
See Also
controlc_open
Example
See controlc_open

controlc_open

Header
controlc.h
Prototype
int controlc_open(void);
Description
Installs a user supplied control C break handler. A pointer to the handler should have been previously installed in the global variable _controlc_handler. The handler must be a far function that has void arguments and returns a void. It should be declared with C linkage (__cdecl).

Functions controlc_open and controlc_close are portable across all of the platforms Digital Mars C++ supports.

This function uses the following global variable:

void (__cdecl *_controlc_handler)(void);

To use the controlc_open function, install a pointer to your control c/break handler in _controlc_handler, and then call controlc_open() to activate it.

Compatibility
DOS Windows 3.x Phar Lap DOSX Win32
See Also
controlc_close
Home | Compiler & Tools | IDDE Reference | STL | Search | Download | Forums