home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!europa.asd.contel.com!emory!swrinde!zaphod.mps.ohio-state.edu!cs.utexas.edu!ut-emx!ibmchs!auschs!portal.austin.ibm.com!awdprime.austin.ibm.com!awdprime.austin.ibm.com!sdl
- From: sdl@adagio.austin.ibm.com (sdl)
- Newsgroups: comp.unix.aix
- Subject: Re: Divide by Zero trapping
- Message-ID: <SDL.92Nov6104829@adagio.austin.ibm.com>
- Date: 6 Nov 92 15:48:29 GMT
- References: <1992Nov3.183201.16550@versyss.com>
- <SDL.92Nov5091744@adagio.austin.ibm.com>
- Sender: news@awdprime.austin.ibm.com (USENET News)
- Reply-To: sdl@austin.ibm.com
- Organization: AIX Base System Kernel Development
- Lines: 16
- In-Reply-To: sdl@adagio.austin.ibm.com's message of Thu, 5 Nov 1992 14:17:44 GMT
-
-
- In article <SDL.92Nov5091744@adagio.austin.ibm.com> I tell the
- following fib:
-
- > As far as I know there is no
- > option to detect integer division by zero in C.
-
- Well, I've now learned that the -qcheck compiler option for XLC will
- detect integer divide by zero. The division by zero will cause
- SIGTRAP to be raised.
-
- --
- --------------------------------------------------------------------
- Stephen Linam AWSD Austin T/L: 678-3308 Bell-net: (512) 838-3308
- sdl@austin.ibm.com IBM VNET: LINAM at AUSTIN
- Quae narravi, nullo modo negabo. I don't speak for IBM
-