Re: alx-0008 - Standardize strtoi(3) and strtou(3) from NetBSD
Thorsten Glaser <[email protected]> Thu, 20 Mar 2025 18:18:18 +0100 (CET)
| Newsgroups | gmane.os.netbsd.devel.general |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 20 Mar 2025, Alejandro Colomar wrote: >> I don't think there is. Callers who wish to accept a leading '-' sign >> can call strtol() and cast the result to 'unsigned long'. > >Yeah. The only issue with that is not having the full range of >uintmax_t. But I still think it's a misfeature. The other issue is that -LONG_MAX-1 may not exist in the signed data type (in ISO C, even with two=E2=80=99s complement now prescribed). Unlikely to matter in the POSIX case, of course. bye, //mirabilos --=20 22:59=E2=8E=9C<Vutral> glaub ich termkit is kompliziert | glabe nicht das m= an damit schneller arbeitet | reiz=C3=BCberflutung =E2=94=82 wie windows =E2= =94=82 alles evil zuviel bilder =E2=94=82 wie ein spiel | 23:00=E2=8E=9C<Vutral> die meisten = raffen auch nicht mehr von windows | 23:01=E2=8E=9C<Vutral> bilderb=C3=BCcher sind ja a= uch nich wirklich verbreitet als erwachsenen literatur=09=E2=80=A3 who needs GUIs th= us?