mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 16:37:19 +09:00
journalctl: add --truncate-newline option
This commit is contained in:
committed by
Lennart Poettering
parent
9a109e7cd6
commit
61cecfa0d8
@@ -121,7 +121,10 @@ char *strjoin_real(const char *x, ...) _sentinel_;
|
||||
char *strstrip(char *s);
|
||||
char *delete_chars(char *s, const char *bad);
|
||||
char *delete_trailing_chars(char *s, const char *bad);
|
||||
char *truncate_nl(char *s);
|
||||
char *truncate_nl_full(char *s, size_t *ret_len);
|
||||
static inline char *truncate_nl(char *s) {
|
||||
return truncate_nl_full(s, NULL);
|
||||
}
|
||||
|
||||
static inline char *skip_leading_chars(const char *s, const char *bad) {
|
||||
if (!s)
|
||||
|
||||
Reference in New Issue
Block a user