www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/15/02:21:58

From: ronman AT imt DOT net (ron newman)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: How to implement a CTRL-C handler?
Date: Thu, 15 Oct 98 05:06:14 GMT
Organization: Troubadour Technology
Lines: 23
Message-ID: <703vs6$cq8_001@bzn4-22.imt.net>
References: <3625408b DOT 0 AT nsuxnews>
NNTP-Posting-Host: bzn4-22.imt.net
X-Newsreader: News Xpress Version 1.0 Beta #4
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

In article <3625408b DOT 0 AT nsuxnews>, "Goh Yong Kwang" <s6606555 AT np DOT edu DOT sg> wrote:
>
>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?


The pctim003.zip (probably 004 or 005 by now) file goes into great detail 
about control C.  It's on various ftp servers.

*****************************************************************
Ron Newman
Troubadour Technology
http://www.imt.net/~ronman/animal.htm
*****************************************************************

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019