atexit-function needed
Posted: Tue Mar 22, 2005 12:44 am
I could need an "atexit" function, that may work als following: if the program is terminating, call all atexit-functions before exiting / cleaning up.
example:
atexit(function1())
atexit(function2())
...
the program exists, but before cleaning up it starts the first, then the 2nd function before cleaning up internally.
An exit-handler is a thing that I am waiting for, and it would help a lot for the things I am developing with pb.
example:
atexit(function1())
atexit(function2())
...
the program exists, but before cleaning up it starts the first, then the 2nd function before cleaning up internally.
An exit-handler is a thing that I am waiting for, and it would help a lot for the things I am developing with pb.