cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
user name:
password:
Forgot your password?
please wait
try again
cancel
forgot your password?
sign up
log in
[Legacy version]
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Signal handling in c++
Signal handling in c++
Jan 27, 2011 at 1:50pm
Jan 27, 2011 at 1:50pm UTC
harishisnow
(1)
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
Jan 27, 2011 at 1:58pm UTC
Moschops
(7244)
Signal handling is covered by the header <signal>, detailed here:
http://www.cplusplus.com/reference/clibrary/csignal/
Topic archived. No new replies allowed.