Sujet : Re: The difference between strtol() and strtoul() ?
De : already5chosen (at) *nospam* yahoo.com (Michael S)
Groupes : comp.lang.cDate : 22. Jun 2024, 19:04:38
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <20240622210438.0000018f@yahoo.com>
References : 1 2 3 4 5
User-Agent : Claws Mail 4.1.1 (GTK 3.24.34; x86_64-w64-mingw32)
On Fri, 21 Jun 2024 10:38:51 -0700
Keith Thompson <Keith.S.Thompson+
u@gmail.com> wrote:
Ben Bacarisse <ben@bsb.me.uk> writes:
Michael S <already5chosen@yahoo.com> writes:
[...]
Which are? uunfortunately, not part of C standard.
>
Not sure if that '?' is just a typo. Anyway, yes they are both
part of the C standard.
strto[u]l[l] are declared in <stdlib.h> strtoimax and strtoumax are
declared in <inttypes.h>, which can make them easy to miss.
May be, that is the reason. But frankly, I expected that
cppreference.com will do better. As a minimum, strtoimax should have
ben listed in "See also" section on this page:
https://en.cppreference.com/w/c/string/byte/strtol