aboutsummaryrefslogtreecommitdiff
path: root/stdlib/strtod_l.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2007-01-11 21:51:00 +0000
committerUlrich Drepper <drepper@redhat.com>2007-01-11 21:51:00 +0000
commitd6220e9ee38c1c9285221b023346201ec5f511b3 (patch)
treec524b0893dad62896e9c35dd8701cfdf7f5c8328 /stdlib/strtod_l.c
parent43b9d657408fbf47a47934f9e7c84ed87f7f5a18 (diff)
downloadglibc-d6220e9ee38c1c9285221b023346201ec5f511b3.zip
glibc-d6220e9ee38c1c9285221b023346201ec5f511b3.tar.gz
glibc-d6220e9ee38c1c9285221b023346201ec5f511b3.tar.bz2
Include errno.h. Change main() to do_test(). Define TEST_FUNCTION. Include test-skeleton.c. (do_test): Check errno and exit(0) if ENOSYS.
Diffstat (limited to 'stdlib/strtod_l.c')
-rw-r--r--stdlib/strtod_l.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/stdlib/strtod_l.c b/stdlib/strtod_l.c
index 397fd70..bb7493b 100644
--- a/stdlib/strtod_l.c
+++ b/stdlib/strtod_l.c
@@ -651,10 +651,11 @@ ____STRTOF_INTERNAL (nptr, endptr, group, loc)
if (c != '0')
{
for (cnt = 0; thousands[cnt] != '\0'; ++cnt)
- if (c != thousands[cnt])
+ if (thousands[cnt] != cp[cnt])
break;
if (thousands[cnt] != '\0')
break;
+ cp += cnt - 1;
}
c = *++cp;
}
@@ -725,6 +726,7 @@ ____STRTOF_INTERNAL (nptr, endptr, group, loc)
break;
if (thousands[cnt] != '\0')
break;
+ cp += cnt - 1;
}
#endif
}