Newsgroups: comp.lang.c Path: utzoo!henry From: henry@utzoo.uucp (Henry Spencer) Subject: Re: checking for overflow in C Message-ID: <1989May12.154417.21344@utzoo.uucp> Organization: U of Toronto Zoology References: <13367@dartvax.Dartmouth.EDU> <1989May6.224226.22085@utzoo.uucp> <1989May9.183140.1770@utzoo.uucp> <8172@june.cs.washington.edu> <1079@atanasoff.cs.iastate.edu> Date: Fri, 12 May 89 15:44:17 GMT In article <1079@atanasoff.cs.iastate.edu> hascall@atanasoff.cs.iastate.edu (John Hascall) writes: > If this overflow business is important to you (and it certainly is > for some)... Why not use SIGFPE? This works (is documented to work, > I've never had occasion to try it) under BSD on the VAX, perhaps > it works on your machine as well. Did ANSI have anything to say > on this topic? SIGFPE and friends unfortunately are *very* machine-specific, because you get signals only when the hardware feels like supplying them. -- Mars in 1980s: USSR, 2 tries, | Henry Spencer at U of Toronto Zoology 2 failures; USA, 0 tries. | uunet!attcan!utzoo!henry henry@zoo.toronto.edu