]> git.ipfire.org Git - thirdparty/systemd.git/commit
string-util: add strlen_ptr() helper
authorLennart Poettering <lennart@poettering.net>
Thu, 20 Jul 2017 09:38:15 +0000 (11:38 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 31 Jul 2017 16:20:28 +0000 (18:20 +0200)
commit7bf7ce28b5a1f589f0f2382e54c03ab9b0794fab
tree701387d210e1e75c063a734ea6fe13bf33d88f87
parent6f8cbcdb27d772521ba71f92c25fd522efd56cf4
string-util: add strlen_ptr() helper

strlen_ptr() is to strlen() what streq_ptr() is to streq(): i.e. it
handles NULL strings in a smart way.
src/basic/bus-label.h
src/basic/escape.c
src/basic/hexdecoct.c
src/basic/string-util.c
src/basic/string-util.h
src/nss-myhostname/nss-myhostname.c
src/systemctl/systemctl.c
src/test/test-string-util.c