Path: utzoo!utgpu!water!watmath!clyde!att!pacbell!ames!oliveb!sun!gorodish!guy From: guy@gorodish.Sun.COM (Guy Harris) Newsgroups: comp.lang.c Subject: Re: strange behavior from SUN strtod() Message-ID: <60862@sun.uucp> Date: 21 Jul 88 18:46:16 GMT References: <3d59d9c1.14de1@simscript> <440@kaon.uchicago.edu> Sender: news@sun.uucp Lines: 16 > >I seemed to have discovered a bug in the SUN library function strtod().` > >Can anyone confirm this? Here is a sample program: > [deleted] > >The problem w/ the Sun strtod() lies in that the second parameter is not > >correctly passed back. The answer is "yes, he's found a bug in the AT&T System V Release 2.0 library function 'strtod()'" (the Sun one is just the S5R2 one, with one #ifdef changed to correctly specify which machines are IEEE machines). You'll find this bug on machines other than Suns.... > Yes, I've had the same problem. Ended up moving the pointer by hand (humph). > We're running Sun UNIX 4.2 Release 3.3; don't know about later versions. AT&T's bug is fixed in S5R3, I think, or perhaps sooner. Sun's bug is fixed in 4.0; the two implementations are now different.