Is there a way to prevent ctrl c from exiting my program?
Is there a way to prevent ctrl c from exiting my program?
Hi,
yes, there is a way. You'll have to install your own signal handler by using the signal() function.
enjoy
cody
#include "reallife.h"
Why would you like to do that? If you happen to get into an infinite loop when testing the program, it won't be fun...
MagosX.com
Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime.
yeah, but if you really do have bulletproof code, that would never happen... plus, if you are coding over a windows environment, you could alt-tab to the rescue... [you'd have to mask those as well... or have a preset PIF disabling those shortcuts...]... if you really want to usurp it, i'd recommend you do it very last...
hasafraggin shizigishin oppashigger...