Re: [PATCH v1] xstrtol: Remove dead code
Bruno Haible <[email protected]> Fri, 19 Jul 2024 18:54:40 +0200
| Newsgroups | dev.linux.lists.liba2i |
|---|---|
| Message-ID | <3987680.qgXdJBQaxk@nimes> |
Alejandro Colomar wrote: > strtod(3) defers to strtol(3) for the example program. Is this adequate? strtod() can produce underflow (e.g. for "1e-500"). In this case all implementations except MSVC set errno to ERANGE. This is a case that cannot happen in strtol(). Bruno