]> git.ipfire.org Git - thirdparty/shadow.git/commit
lib/string/strspn/, lib/, src/: stprspn(), strrspn_(): Split API into function and...
authorAlejandro Colomar <alx@kernel.org>
Sat, 16 Nov 2024 14:15:32 +0000 (15:15 +0100)
committerSerge Hallyn <serge@hallyn.com>
Sun, 16 Feb 2025 19:22:51 +0000 (13:22 -0600)
commita0d4ea3bece0e781fb9e0b5facb074744a9a0479
tree0b305fa53c38da938cdcbba2862f66373d15f07d
parent872de49dcfbd681e1bd3901265e33bc1430a6102
lib/string/strspn/, lib/, src/: stprspn(), strrspn_(): Split API into function and macro

This provides a safer and more consistent API.

We had the strrspn(3) function as it was for compatibility with Oracle
Solaris, but let's not repeat their mistake.  Nevertheless, name our
function strrspn_() with a trailing underscore, to differentiate it from
the one in Solaris, since it's slightly different.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/Makefile.am
lib/fields.c
lib/getdef.c
lib/string/strspn/stprspn.c [new file with mode: 0644]
lib/string/strspn/stprspn.h [new file with mode: 0644]
lib/string/strspn/strrspn.c
lib/string/strspn/strrspn.h
src/login_nopam.c
src/suauth.c