This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: Should nanl(0) crash?
- From: Ulrich Drepper <drepper at redhat dot com>
- To: Petter Reinholdtsen <pere at hungry dot com>
- Cc: libc-alpha at gnu dot org
- Date: Sat, 24 Jul 2004 14:49:22 -0700
- Subject: Re: Should nanl(0) crash?
- Organization: Red Hat, Inc.
- References: <E1BoTen-0007CE-SF@saruman.uio.no>
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. :(
Why should this not crash? It's no different from strlen(0) or atof(0).
--
â Ulrich Drepper â Red Hat, Inc. â 444 Castro St â Mountain View, CA â