Path: utzoo!utgpu!water!watmath!clyde!bellcore!faline!ulysses!allegra!princeton!phoenix!asjoshi From: asjoshi@phoenix.UUCP Newsgroups: comp.sys.ibm.pc Subject: Re: MSC 4.0 interrupt handlers Keywords: signal Message-ID: <1530@phoenix.Princeton.EDU> Date: 24 Jan 88 17:28:48 GMT References: <657@silver.bacs.indiana.edu> Reply-To: asjoshi@phoenix.Princeton.EDU (Amit S. Joshi) Distribution: na Organization: Princeton University, NJ Lines: 19 Posted: Sun Jan 24 12:28:48 1988 I don't have MSC but I know how to do what you want under TurboC. TurboC provides 3 functions for dealing with the stuff. 1)setbrk(1); /* 1=> ^C is checked 0=> don't check ^C */ 2)ctrlbrk(func); /* func is called when ^C is detected */ 3)int func() { /* cleanup */ return 0; } /* func performs cleaning up actions and DOS aborts the program if func returns 0 */ Hope this helps. I suppose that you should be able to get something equivalent in MSC :-). I know that if you don't you can write up a couple of routines that do it. I forget which but there are some DOS services which are exactly the equvalent of the above. -- Amit Joshi BITNET | Q3696@PUCC.BITNET USENET | {seismo, rutgers}\!princeton\!phoenix\!asjoshi "There's a pleasure in being mad... which none but madmen know!" - St.Dryden