🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #11736

Re: Overriding ^C trap

#11736
From: Eric Cotton
Date: Thu, 09 Mar 1989 16:03
20 lines
1162 bytes
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."
Technical Details
Message-ID: <6191@cbmvax.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!mit-eddie!rutgers!cbmvax!eric
References: <9672@bloom-beacon.MIT.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!mit-eddie!rutgers!cbmvax!eric
From: eric@cbmvax.UUCP (Eric Cotton)
Newsgroups: comp.sys.amiga.tech
Subject: Re: Overriding ^C trap
Message-ID: <6191@cbmvax.UUCP>
Date: 9 Mar 89 16:03:37 GMT
References: <9672@bloom-beacon.MIT.EDU>
Reply-To: eric@cbmvax.UUCP (Eric Cotton)
Organization: Commodore Technology, West Chester, PA
Lines: 20