]> git.ipfire.org Git - thirdparty/shadow.git/commit
lib/atoi/strtou_noneg.[ch]: Add strtou_noneg()
authorAlejandro Colomar <alx@kernel.org>
Sat, 6 Jan 2024 18:46:20 +0000 (19:46 +0100)
committerSerge Hallyn <serge@hallyn.com>
Thu, 1 Feb 2024 04:26:19 +0000 (22:26 -0600)
commitf2b240595b1c0f10f3a73cceb3bc4f6226cb8818
tree7e70c66db454b9ace16ac0c3ab48bccc3056c1d9
parentf632515581755b7c8216c58d84c85f02caa863af
lib/atoi/strtou_noneg.[ch]: Add strtou_noneg()

It's like strtou_(), but rejects negative input, instead of silently
converting it to unsigned.

Link: <https://softwareengineering.stackexchange.com/a/449060/332848>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/atoi/strtou_noneg.c
lib/atoi/strtou_noneg.h