]> git.ipfire.org Git - thirdparty/systemd.git/commit
string-util: add new helper for finding line starting with specific string in a text...
authorLennart Poettering <lennart@poettering.net>
Fri, 24 Mar 2023 17:02:32 +0000 (18:02 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 24 Mar 2023 17:30:20 +0000 (18:30 +0100)
commit7b82d95f8d867958be648cc0027bf36d3f558e41
treebb8388afa9b7b97dde1a13e66a717b30b1e88b25
parent32e07cff96d70dbb474d67f6c7022dd5fc028d3f
string-util: add new helper for finding line starting with specific string in a text buffer

We have implemented this manually a couple of times, and always wrong.
Hence let's implement this correctly for once and use everywhere.
src/basic/string-util.c
src/basic/string-util.h
src/test/test-string-util.c