PDA

View Full Version : C/C++ Program Hangs


JoeLeBlanc
10-20-2003, 08:57 PM
Hello,

I have a simple weather program made in C/C++ that collects data, parses it, and outputs it to a file. I have noticed that sometimes the process doesn't die and I have to kill it myself, anyway I can add a code into my c program so it would kill it self after so many seconds?

Thanks

Terra
10-20-2003, 09:12 PM
alarm() is your friend...

--
Terra
--still uses a wind up clock--
FutureQuest

JoeLeBlanc
10-21-2003, 06:49 AM
Ok, thanks Terra, I think this is going to help alot.