delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2003/01/10/16:30:16

Date: Fri, 10 Jan 2003 22:07:59 +0300
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: djgpp-workers AT delorie DOT com
Message-Id: <2593-Fri10Jan2003220759+0200-eliz@is.elta.co.il>
X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9
In-reply-to: <200301082016.h08KGA210951@delorie.com> (cvs@delorie.com)
Subject: Re: djgpp: djgpp/src/libc/c99/stdlib/makefile,strtof.c,strtof.txh
References: <200301082016 DOT h08KGA210951 AT delorie DOT com>
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> Date: Wed, 8 Jan 2003 15:16:10 -0500
> From: "cvs-richdawe AT delorie DOT com" <cvs AT delorie DOT com>
> 
> + If a number represented by @var{s} doesn't fit into the range of values
> + representable by the type @code{double}, the function returns either
> + @code{-HUGE_VAL} (if @var{s} begins with the character @code{-}) or
> + @code{+HUGE_VAL}, and sets @code{errno} to @code{ERANGE}.

We are talking about strtof here, right?  strtof returns a float,
right?  So the second line should say "@code{float}" instaed of
"@code{double}", and we shouldn't return HUGE_VAL (which is a double
value and is not necessarily representable by a float), but rather
some other value.  What does glibc's strtof do in that case?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019