bebbo / libnix

libnix (v4): a C link library for AmigaOS/m68k
15 stars 9 forks source link

strtoimax is an alias for strtol, but intmax_t is long long (64 bit), not long (32 bit) #35

Closed Midar closed 3 years ago

Midar commented 4 years ago

$title

I think the proper solution would be to copy strtol.c to strtoll.c, make it use long long and have that alias to strtoimax instead.

Same for strtoull / strtoumax.

bebbo commented 4 years ago

please test

Midar commented 4 years ago

Seems to work.

Similar to this: strtof is missing

bebbo commented 3 years ago

added strtof - please test