alx-0008 - Standardize strtoi(3) and strtou(3) from NetBSD
Thorsten Glaser
tg at debian.org
Thu Mar 20 17:18:18 UTC 2025
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’s complement now
prescribed).
Unlikely to matter in the POSIX case, of course.
bye,
//mirabilos
--
22:59⎜<Vutral> glaub ich termkit is kompliziert | glabe nicht das man
damit schneller arbeitet | reizüberflutung │ wie windows │ alles evil
zuviel bilder │ wie ein spiel | 23:00⎜<Vutral> die meisten raffen auch
nicht mehr von windows | 23:01⎜<Vutral> bilderbücher sind ja auch nich
wirklich verbreitet als erwachsenen literatur ‣ who needs GUIs thus?
More information about the libbsd
mailing list