Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Michael S Newsgroups: comp.lang.c Subject: Re: The difference between strtol() and strtoul() ? Date: Fri, 21 Jun 2024 19:00:08 +0300 Organization: A noiseless patient Spider Lines: 12 Message-ID: <20240621190008.00006c1e@yahoo.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Date: Fri, 21 Jun 2024 18:00:15 +0200 (CEST) Injection-Info: dont-email.me; posting-host="993f825e38e46acfbd70d7821a00500d"; logging-data="3339403"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/IWdW++bSw/cz20CE45y3ell5WOwQ8XmI=" Cancel-Lock: sha1:DQ3HgB6sR/JfzOsH29+8QNOYEBk= X-Newsreader: Claws Mail 4.1.1 (GTK 3.24.34; x86_64-w64-mingw32) Bytes: 1481 On Fri, 21 Jun 2024 13:58:01 -0000 (UTC) gazelle@shell.xmission.com (Kenny McCormack) wrote: > In article , > 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.