mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
string-util: let's add helper for truncating string after a specified number of lines
This commit is contained in:
@@ -280,3 +280,5 @@ 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);
|
||||
|
||||
Reference in New Issue
Block a user