]> git.ipfire.org Git - thirdparty/shadow.git/commit
lib/string/strchr/: stp[c]spn(), strrspn(), strnul(): Add macros and functions
authorAlejandro Colomar <alx@kernel.org>
Sat, 18 May 2024 18:41:30 +0000 (20:41 +0200)
committerSerge Hallyn <serge@hallyn.com>
Wed, 3 Jul 2024 15:03:12 +0000 (10:03 -0500)
commit2fcf5201849d77e4782dc1b41393d89711cd8d90
tree6f3498dfc5d3c0c338c2162493bceb7769574578
parentb38ee0c6d0575f8275b3577c4c1d4d7aaac37393
lib/string/strchr/: stp[c]spn(), strrspn(), strnul(): Add macros and functions

Often, a pointer is more useful than a length when calling these.

Link: <https://docs.oracle.com/cd/E86824_01/html/E54769/strrspn-3gen.html>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/Makefile.am
lib/string/strchr/stpcspn.c [new file with mode: 0644]
lib/string/strchr/stpcspn.h [new file with mode: 0644]
lib/string/strchr/stpspn.c [new file with mode: 0644]
lib/string/strchr/stpspn.h [new file with mode: 0644]
lib/string/strchr/strnul.c [new file with mode: 0644]
lib/string/strchr/strnul.h [new file with mode: 0644]
lib/string/strchr/strrspn.c [new file with mode: 0644]
lib/string/strchr/strrspn.h [new file with mode: 0644]