Date: Sun, 28 Mar 2004 15:17:56 -0800 From: David Schultz <das@FreeBSD.ORG> To: Eric De la Cruz Lugo <eric@iteso.mx> Cc: freebsd-standards@FreeBSD.ORG Subject: Re: Question about strtof() function under FreeBSD 4.9 Message-ID: <20040328231756.GA86437@VARK.homeunix.com> In-Reply-To: <1080397817.40658ff979c2e@iteso.mx> References: <1080397817.40658ff979c2e@iteso.mx>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Mar 27, 2004, Eric De la Cruz Lugo wrote: > I just need to know if the strtof function in <stdlib> will be implemented > soon in the 4.9 Release, I checked the status and the 5.x Branch has it > already, will be long before 4.9 has it too? > > thanks in advance for your help, please reply to my address > because am not in the list. > > Am trying to compile a POS software (Linux, BananaPos) and in > one code I need > that function strtof(). > > showl I upgrade to 5.2.1? Getting strtof() and strtold() involved importing a big chunk of software that isn't going to be backported to 4.X. You can either upgrade to 5.X, or use the following substitute, which should work well except for overflow handling: float strtof(const char * restrict nptr, char ** restrict endptr) { return ((float)strtod(nptr, endptr)); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040328231756.GA86437>