string-util: Add startswith_strv()
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 18 Apr 2023 11:11:45 +0000 (13:11 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 20 Apr 2023 11:43:37 +0000 (13:43 +0200)
commit70cc7ed97e474a5237f0ea183b9bd85ccb99f192
tree2dc11839e96e55fbe78bb34157ece8d5d55069dc
parent85003d1296a636349dcd3a1743ec8675a8f0bdb6
string-util: Add startswith_strv()

This is the function version of STARTSWITH_SET(). We also move
STARTSWITH_SET() to string-util.h as it fits more there than in
strv.h and reimplement it using startswith_strv().
src/basic/string-util.c
src/basic/string-util.h
src/basic/strv.h