Hi Eric,
> I ran into a mingw bug on strtol() today, and don't see it documented or
> worked around in gnulib:
Thanks for the report and test case. The functions strtoul(), strtoll(),
strtoull() are equally affected. I'm adding workarounds to gnulib.
2021-04-02 Bruno Haible
strtoul,
I ran into a mingw bug on strtol() today, and don't see it documented or
worked around in gnulib:
$ cat foo.c
#include
#include
#include
int main(void)
{
unsigned long u;
const char *str = "0x";
char *end;
errno = 0;
u = strtoul(str, &end, 10);
printf("%lu %s %d\n", u,