www.digitalmars.com Home | Search | CTG | RTL | IDDE | STL | C/C++ Compiler | D
Last update Thu Apr 13 20:29:32 2006
Runtime Library
Reference


· Constants
· Data types

Standard C
· assert.h
· complex.h
· ctype.h
· fenv.h
· float.h
· locale.h
· math.h
· setjmp.h
· signal.h
· stdarg.h
· stddef.h
· stdio.h
· stdlib.h
· string.h
· time.h


Standard C++
· IOstream
· new


Win32
· gc.h


DOS, DOS32, Win16
· bios.h
· cerror.h
· disp.h
· dos.h
· dos.h part 2
· emm.h
· handle.h
· int.h
· msmouse.h
· sound.h
· swap.h
· tsr.h
· winio.h


Other C
· bitops.h
· conio.h
· controlc.h
· direct.h
· fltpnt.h
· io.h
· page.h
· process.h
· search.h
· sys\stat.h
· tabsize.h
· trace.h
· utime.h
· unmangle.h
· util.h


Other C++
· regexp.h
· class complex


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