From: "Goh Yong Kwang" Sender: "Goh Yong Kwang" Subject: How to implement a CTRL-C handler? Newsgroups: comp.os.msdos.djgpp X-User-Info: 153.20.61.144 s6606555 npnsnews NNTP-Posting-Host: 153.20.15.92 Message-ID: <3625408b.0@nsuxnews> Date: 15 Oct 1998 08:23:39 +0800 X-Trace: 15 Oct 1998 08:23:39 +0800, 153.20.15.92 Lines: 6 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com My program always terminate when the user presses CTRL-C. Files go unsaved, data are lost and sometimes corrupted because it was terminated halfway through writing files and so on. I think there's a way to handle this situation whereby the program maintains control after CTRL-C is pressed. From what I know, I think I've to implement some sort of CTRL-C handler/function/routine but I've totally no idea how to do it. Can anyone help me with this?