Date: Fri, 25 Jan 2002 00:39:52 +0300 From: "Andrey A. Chernov" <ache@nagual.pp.ru> To: Chad David <davidc@acns.ab.ca> Cc: arch@FreeBSD.ORG Subject: Re: strtod() Message-ID: <20020124213951.GB87013@nagual.pp.ru> In-Reply-To: <20020124135250.A454@colnta.acns.ab.ca> References: <20020124135250.A454@colnta.acns.ab.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jan 24, 2002 at 13:52:50 -0700, Chad David wrote: > > SUSv2 states that if no conversion can be performed 0.0 is returned, and > error MAY be set to EINVAL; POSIX says it too. IMHO it is proper variant to _set_ it to distinguish pure 0.0 with 0.0 as result of wrong conversion. Our other strto*() functions in the -current already do so. -- 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?20020124213951.GB87013>