http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56336
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2013-02-15 06:53:15 UTC --- I think you could do: if (__endptr && *__endptr != 0) instead without the need of the length of the string.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56336
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2013-02-15 06:53:15 UTC --- I think you could do: if (__endptr && *__endptr != 0) instead without the need of the length of the string.