Groups | Search | Server Info | Login | Register
Groups > muc.lists.netbsd.tech.misc > #123
| From | Thorsten Glaser <tg@debian.org> |
|---|---|
| Newsgroups | muc.lists.netbsd.tech.misc |
| Subject | Re: alx-0008 - Standardize strtoi(3) and strtou(3) from NetBSD |
| Date | 2025-03-20 18:18 +0100 |
| Organization | Newsgate at muc.de e.V. |
| Message-ID | <7a6f5cfb-cf81-501c-41e0-3317ccc1cbf9@debian.org> (permalink) |
| References | <cvlwvnk2l4rmhife7z7emeibxjxifutr2txtyqwrw6yt5um2pp@v2v3dtobmowi> <> |
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? -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Back to muc.lists.netbsd.tech.misc | Previous | Next — Previous in thread | Find similar
Re: alx-0008 - Standardize strtoi(3) and strtou(3) from NetBSD Alejandro Colomar <alx@kernel.org> - 2025-03-20 13:55 +0100 Re: alx-0008 - Standardize strtoi(3) and strtou(3) from NetBSD Thorsten Glaser <tg@debian.org> - 2025-03-20 18:18 +0100
csiph-web