Should nanl(0) crash?
Robert Love
rml@ximian.com
Sat Jul 24 21:49:00 GMT 2004
On Sat, 2004-07-24 at 23:02 +0200, Petter Reinholdtsen wrote:
> This code compile, run and print 0 on Tru64 Unix. On Linux, it
> crashes with a segfault. Is it legal to call nanl(0)? I tried
> checking the C standard, but that didn't make me wiser. :(
While it probably makes sense for nanl(0) not to crash, the argument's
behavior is "unspecified" so this is probably within the realm of
standards conformance.
Robert Love
More information about the Libc-alpha
mailing list