Mail Archives: djgpp/1992/07/04/16:09:45
This may have been reported before, I can't remember. If not:
The atexit() and onexit() functions do not work in djgpp 1.06. The
problem is in /djgpp/libsrc/c/lib/onexit.c. Here is the simple patch
to fix the problem.
*** onexit.ori Thu Jul 02 23:42:32 1992
--- onexit.c Thu Jul 02 23:42:56 1992
***************
*** 23,28 ****
--- 23,29 ----
a->next = __atexit;
a->function = func;
a->arg = arg;
+ __atexit = a;
}
atexit(a)
--
Eric Backus
ericb%hplsla AT hplabs DOT hp DOT com
(206) 335-2495
- Raw text -