Signal handling in c++

Jan 27, 2011 at 1:50pm
Hello,
I want to execute a function, say writestat() when the signal SIGINT (Ctrl + c)
is pressed. How do I do that?

Can you please help?

Regards,
Harish
Jan 27, 2011 at 1:58pm
Signal handling is covered by the header <signal>, detailed here: http://www.cplusplus.com/reference/clibrary/csignal/

Topic archived. No new replies allowed.