tech-misc archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: alx-0008 - Standardize strtoi(3) and strtou(3) from NetBSD
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?
Home |
Main Index |
Thread Index |
Old Index