diff options
author | Alejandro Colomar <alx@kernel.org> | 2023-12-19 13:48:28 +0100 |
---|---|---|
committer | Alejandro Colomar <alx@kernel.org> | 2023-12-19 14:08:14 +0100 |
commit | 13dedafc71925d73ef83d0848271bd5e77f6b14b (patch) | |
tree | 40fb01541755dcea0767ca8de0e8187a69352e9e /.gitignore | |
parent | 3630425f826c7334592c7d1f2527082cfe43f79d (diff) | |
download | unit-13dedafc71925d73ef83d0848271bd5e77f6b14b.tar.gz unit-13dedafc71925d73ef83d0848271bd5e77f6b14b.tar.bz2 |
String: added nxt_strtoul_noneg().
This function is like strtoul(3), but it rejects negative numbers,
instead of silently converting them into unsigned, which strtoul(3)
does.
Link: <https://blog.habets.se/2022/10/No-way-to-parse-integers-in-C.html>
Link: <https://softwareengineering.stackexchange.com/a/449060/332848>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions