Home
last modified time | relevance | path

Searched refs:delete_trailing_chars (Results 1 – 14 of 14) sorted by relevance

/systemd-251/src/test/
Dtest-string-util.c476 TEST(delete_trailing_chars) { in TEST() argument
482 s = delete_trailing_chars(input1, WHITESPACE); in TEST()
486 s = delete_trailing_chars(input2, "kt"); in TEST()
490 s = delete_trailing_chars(input3, WHITESPACE); in TEST()
494 s = delete_trailing_chars(input3, "fe"); in TEST()
505 assert_se(streq(delete_trailing_chars(s1, "_"), "foobar//")); in TEST()
506 assert_se(streq(delete_trailing_chars(s1, "/"), "foobar")); in TEST()
507 assert_se(streq(delete_trailing_chars(s2, "/"), "foobar")); in TEST()
508 assert_se(streq(delete_trailing_chars(s3, "/"), "foobar")); in TEST()
509 assert_se(streq(delete_trailing_chars(s4, "/"), "")); in TEST()
/systemd-251/src/basic/
Dsysctl-util.c115 delete_trailing_chars(*ret, NEWLINE); in sysctl_read()
Dstring-util.h106 char *delete_trailing_chars(char *s, const char *bad);
Dstring-util.c126 return delete_trailing_chars(skip_leading_chars(s, WHITESPACE), WHITESPACE); in strstrip()
152 char *delete_trailing_chars(char *s, const char *bad) { in delete_trailing_chars() function
Dchase-symlinks.c164 delete_trailing_chars(root, "/"); in chase_symlinks()
Dprocess-util.c240 delete_trailing_chars(t, WHITESPACE); in get_process_cmdline()
1474 delete_trailing_chars(t, WHITESPACE); in get_oom_score_adjust()
Dunit-name.c409 delete_trailing_chars(p, "/"); in unit_name_path_escape()
/systemd-251/src/shared/
Dpretty-print.c242 delete_trailing_chars(n, "/"); in guess_type()
Dwatchdog.c75 delete_trailing_chars(*ret_gov, WHITESPACE); in get_pretimeout_governor()
Dbootspec.c523 delete_trailing_chars(tmp.options[0], WHITESPACE); in boot_entry_load_unified()
Dformat-table.c2325 delete_trailing_chars(aligned, NULL); in table_print()
/systemd-251/src/udev/
Dudev-event.c372 delete_trailing_chars(vbuf, NULL); in udev_event_subst_format()
Dudev-rules.c1421 delete_trailing_chars(vbuf, NULL); in token_match_attr()
1743 delete_trailing_chars(result, "\n"); in udev_rule_apply_token_to_event()
/systemd-251/src/core/
Dcgroup.c3373 delete_trailing_chars(m->cgroup_root, "/"); in manager_setup_cgroup()