July 03, 2002
The documentation says that the setcbrk function will work in DOSX, and defined in dos.h. But when I compile, I get a an error stating that the function is not defined, and dos.h does not define this function for DOSX builds.

Is setcbrk no longer supported for DOSX?
July 03, 2002
tjulian a écrit :

> The documentation says that the setcbrk function will work in DOSX, and defined in dos.h. But when I compile, I get a an error stating that the function is not defined, and dos.h does not define this function for DOSX builds.
>
> Is setcbrk no longer supported for DOSX?

me i use control c package. see controlc.h (may be not portable ?).

static void _cdecl my_ctrlc_handler() {
    .
    .
}

//trap control-c
  _controlc_handler = my_ctrlc_handler;
  controlc_open();

//untrap
    controolc_close();