Home
last modified time | relevance | path

Searched refs:n_lines (Results 1 – 3 of 3) sorted by relevance

/systemd-251/src/basic/
Dstring-util.c1005 int string_truncate_lines(const char *s, size_t n_lines, char **ret) { in string_truncate_lines() argument
1026 if (n >= n_lines) /* above threshold */ in string_truncate_lines()
1035 if (n >= n_lines) in string_truncate_lines()
Dstring-util.h227 int string_truncate_lines(const char *s, size_t n_lines, char **ret);
/systemd-251/src/test/
Dtest-string-util.c606 static void test_string_truncate_lines_one(const char *input, size_t n_lines, const char *output, b… in test_string_truncate_lines_one() argument
610 assert_se((k = string_truncate_lines(input, n_lines, &b)) >= 0); in test_string_truncate_lines_one()