mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
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.
This commit is contained in:
@@ -253,3 +253,5 @@ size_t strspn_from_end(const char *str, const char *accept);
|
||||
|
||||
char *strdupspn(const char *a, const char *accept);
|
||||
char *strdupcspn(const char *a, const char *reject);
|
||||
|
||||
char *find_line_startswith(const char *haystack, const char *needle);
|
||||
|
||||
Reference in New Issue
Block a user