string-util: add helper for extracting n'th line of a string

This commit is contained in:
Lennart Poettering
2020-01-13 16:37:42 +01:00
parent 8dd6491ef9
commit f6857fa601
3 changed files with 139 additions and 0 deletions
+1
View File
@@ -282,3 +282,4 @@ static inline char* str_realloc(char **p) {
char* string_erase(char *x);
int string_truncate_lines(const char *s, size_t n_lines, char **ret);
int string_extract_line(const char *s, size_t i, char **ret);