delorie.com/djgpp/doc/libc/libc_457.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

_go32_want_ctrl_break

Syntax

 
#include <go32.h>

void   _go32_want_ctrl_break(int yes);

Description

This function tells go32 whether or not it wants Ctrl-Break to be an exception or passed to the application. If you pass a nonzero value for yes, pressing Ctrl-Break will set a flag that can be detected with _go32_was_ctrl_break_hit (see section _go32_was_ctrl_break_hit). If you pass zero for yes, when you press Ctrl-Break the program will be terminated.

Note that if you call _go32_was_ctrl_break_hit, this function automatically gets called to ask for Ctrl-Break events.

Return Value

None.

Portability

ANSI/ISO C No
POSIX No

Example

 
_g32_want_ctrl_break(1);
do_something_long();
_g32_want_ctrl_break(0);


  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004