Sujet : Re: The difference between strtol() and strtoul() ?
De : already5chosen (at) *nospam* yahoo.com (Michael S)
Groupes : comp.lang.cDate : 21. Jun 2024, 17:00:08
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <20240621190008.00006c1e@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:
In article <v51d1l$2fklr$1@news.xmission.com>,
2) Because it means that the two functions are literally the same
code. Both calculate the same bit pattern - the difference is only in
the caller's interpretation of the result.
I implementation that I just tested strtoll and strtull are not the
same. They deliver different answers when input is out of range.