| Deutsch English Français Italiano |
|
<20240621182839.00000dc4@yahoo.com> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!npeer.as286.net!npeer-ng0.as286.net!3.eu.feeder.erje.net!feeder.erje.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Michael S <already5chosen@yahoo.com> Newsgroups: comp.lang.c Subject: Re: The difference between strtol() and strtoul() ? Date: Fri, 21 Jun 2024 18:28:39 +0300 Organization: A noiseless patient Spider Lines: 16 Message-ID: <20240621182839.00000dc4@yahoo.com> References: <v51d1l$2fklr$1@news.xmission.com> <v540t9$2gsdu$1@news.xmission.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Date: Fri, 21 Jun 2024 17:28:46 +0200 (CEST) Injection-Info: dont-email.me; posting-host="993f825e38e46acfbd70d7821a00500d"; logging-data="3339403"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Icoae+jnXTwVAY/atIIhPTiHQQkup2oU=" Cancel-Lock: sha1:VsKuDB0+aRSOkQmb/TiaHOXskoc= X-Newsreader: Claws Mail 4.1.1 (GTK 3.24.34; x86_64-w64-mingw32) Bytes: 1538 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.