trap command for c?
does c has the "trap" function or similiar function.
i.e run whenever the the program is ended or being killed. Something like c++ destructor. |
It's called atexit().
|
See also "signal" or better "sigaction" for more general signal handling.
|
setting signal handle is a tedious action...
i prefer atexit. thank. :) |
All times are GMT -5. The time now is 05:19 AM. |