bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

BUG: strtof return rubbish, strtod works fine!


From: Vladimir Voznesensky
Subject: BUG: strtof return rubbish, strtod works fine!
Date: Thu, 21 Mar 2002 16:30:09 +0300

Hello.
I use unstable Debian for x86.
Maybe, my place is bedlam,
but I cannot get proper
value from strtof.
---
int testA2F()
{
    const char*bebebe="31415926";
    char *tebe=NULL;
    char**ptebe=&tebe;
    double d=0;
    printf("%s\n",bebebe);
    d=strtof(bebebe,ptebe);
    printf("%G\n",d);
    return 0;
};
---
strtod works fine, but
it will not catch overflows
during double to float
conversion.
Good luck and thank you.
Vladimir Voznesensky.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]