Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Jan 2002 09:50:12 +0300
From:      "Andrey A. Chernov" <ache@nagual.pp.ru>
To:        "Brian F. Feldman" <green@FreeBSD.ORG>
Cc:        Chad David <davidc@acns.ab.ca>, Bruce Evans <bde@zeta.org.au>, arch@FreeBSD.ORG
Subject:   Re: strtod()
Message-ID:  <20020127065011.GA13267@nagual.pp.ru>
In-Reply-To: <200201270453.g0R4rwi92912@green.bikeshed.org>
References:  <20020126162924.A7726@colnta.acns.ab.ca> <200201270453.g0R4rwi92912@green.bikeshed.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jan 26, 2002 at 23:53:58 -0500, Brian F. Feldman wrote:
> 
> The problem is that 0.0 could be the right return value, but if errno was 
> EINVAL before calling strtod(), the caller makes a mistake in assuming 
> "retval == 0.0 && errno == EINVAL means failure".

The caller _must_ set errno = 0 before the call, if he plan to check it 
afterwards.

-- 
Andrey A. Chernov
http://ache.pp.ru/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020127065011.GA13267>