checking for overflow in C
Henry Spencer
henry at utzoo.uucp
Sat May 13 01:44:17 AEST 1989
In article <1079 at atanasoff.cs.iastate.edu> hascall at 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 at zoo.toronto.edu
More information about the Comp.lang.c
mailing list