From: Egon A. <po...@ta...> - 2005-01-31 14:00:57
|
Greg Chicares wrote: > On 2005-01-31 06:05 AM, Egon Andersen wrote: > >> >> I've experienced a strange behaviour of strtold() when the string is >> "1e". >> I would have expected that the endptr was pointing at the second char >> of the above string i.e. the 'e', but apparently it accepts the 'e' as >> a part of the convertable string and the result is 1.0 > > > As I read C99 6.4.4.2, if an exponent-part is given, then > it must contain a digit-sequence. > >> Is this a bug or have I misunderstood the behaviour of strtold()? >> (On my Linux-platform, it works as I expect.) > > > It sounds like a defect of the msvc runtime library. > I don't think strtold() is in the msvc runtime library, but is in the MinGW extension. Best regards Egon Andersen |