Sujet : Re: The difference between strtol() and strtoul() ?
De : already5chosen (at) *nospam* yahoo.com (Michael S)
Groupes : comp.lang.cDate : 21. Jun 2024, 16:28:39
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <20240621182839.00000dc4@yahoo.com>
References : 1 2
User-Agent : Claws Mail 4.1.1 (GTK 3.24.34; x86_64-w64-mingw32)
On Fri, 21 Jun 2024 13:58:01 -0000 (UTC)
gazelle@shell.xmission.com (Kenny McCormack) wrote:
Yeah, now I get it. You really only need strtoimax() and strtoumax().
Which are? uunfortunately, not part of C standard.
A result of any smaller type can be obtained by calling one of these
functions and storing the result in an object of the smaller type.
Or check for range and handle out of range values as appropriate by
situation.