]> git.ipfire.org Git - thirdparty/util-linux.git/commit
include/strutils: Add startswithpath()
authorKarel Zak <kzak@redhat.com>
Thu, 19 Jun 2025 10:23:27 +0000 (12:23 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 19 Jun 2025 10:23:27 +0000 (12:23 +0200)
commit10f0de325d016d7f0fcdbb07372292bd406fdb96
tree36e5b45f6d4df8932f454af2370c7b731283618c
parent023c5f499e2c9bbe126a6017ac7797b7579b3398
include/strutils: Add startswithpath()

This is similar to startswith() but checks if the prefix is a complete
path or a complete subdirectory (needs to end with '/').

Signed-off-by: Karel Zak <kzak@redhat.com>
include/strutils.h