Sujet : Re: The difference between strtol() and strtoul() ?
De : jameskuyper (at) *nospam* alumni.caltech.edu (James Kuyper)
Groupes : comp.lang.cDate : 23. Jun 2024, 01:10:32
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v57p5o$5ct$1@dont-email.me>
References : 1 2 3 4 5 6 7 8
User-Agent : Mozilla Thunderbird
On 6/22/24 11:16, Scott Lurndal wrote:
Lawrence D'Oliveiro <ldo@nz.invalid> writes:
...
You really need to be checking the C spec, just in case.
No, I don't. The posix document clearly states that the text
is from ISO C (and clearly marks any extensions).
It also clearly states:
"The functionality described on this reference page is aligned with the
ISO C standard. Any conflict between the requirements described here and
the ISO C standard is unintentional. This volume of POSIX.1-2017 defers
to the ISO C standard."
This tells you two important things: they believe that there's a small
but significant chance of their description being unintentionally in
conflict with the C standard. And, if that is the case, POSIX defers to C.
You're better off reading the original than the thing that is supposed
to be a faithful copy, but might not be.