string-util: add helper for extracting n'th line of a string
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user