rlcarr@athena.mit.edu (Rich Carreiro) (03/08/89)
I have Lattice C 5.02. I would like to know how to disable CTRL-C checking. Do I have to modify cxbrk.c, or can I just wipe it out by doing int CXBRK() {return(0);} somewhere in my main program, which will mask out the CXBRK() in lc.lib [or wherever it is]. Any help would be great. ARPA: rlcarr@athena.mit.edu UUCP: ...!mit-eddie!mit-athena!rlcarr BITNET: rlcarr%athena.mit.edu@MITVMA.mit.edu ******************************************************************************* * Rich Carreiro "Back off man, I'm a scientist." * * rlcarr@athena.mit.edu - Dr. Peter Venkman * *******************************************************************************
grwalter@watmath.waterloo.edu (Fred Walter) (03/09/89)
In article <9672@bloom-beacon.MIT.EDU> rlcarr@athena.mit.edu (Rich Carreiro) writes: >I have Lattice C 5.02. I would like to know how to disable CTRL-C checking. #include <signal.h> signal(SIGINT, SIG_IGN); Le Voila ! CTRL-C's are now treated like just another character. fred
eric@cbmvax.UUCP (Eric Cotton) (03/10/89)
In article <9672@bloom-beacon.MIT.EDU> rlcarr@athena.mit.edu (Rich Carreiro) writes: >I have Lattice C 5.02. I would like to know how to disable CTRL-C checking. >Do I have to modify cxbrk.c, or can I just wipe it out by doing > >int CXBRK() >{return(0);} > >somewhere in my main program, >which will mask out the CXBRK() in lc.lib [or wherever it is]. int CXBRK() {return(0);} should do the trick. You might have to put the function before main(), however. -- Eric Cotton Commodore-Amiga (215) 431-9100 1200 Wilson Drive {uunet|pyramid|rutgers}!cbmvax!eric West Chester, PA 19380 "I don't find this stuff amusing anymore."