]> git.ipfire.org Git - thirdparty/systemd.git/commit
string-util: add find_line[_after] functions
authorAlberto Planas <aplanas@suse.com>
Wed, 7 May 2025 09:00:10 +0000 (11:00 +0200)
committerAlberto Planas <aplanas@suse.com>
Tue, 20 May 2025 08:29:33 +0000 (10:29 +0200)
commitba2d8107e2f39bd4e9a164f5baf51d7881eded30
tree12c2e120533d42f56ce787b4b18461bee0ffbe58
parent791847ea64d254efa37888d56c77ab61792f5771
string-util: add find_line[_after] functions

As a wrapper for `find_line_startswith`, `find_line_after` search for
the exact line and return the pointer for the next line, or NULL if
missing.

`find_line` with search for the exact line and return the pointer to the
beginning of the line.

Signed-off-by: Alberto Planas <aplanas@suse.com>
src/basic/string-util.c
src/basic/string-util.h