Searched refs:postfix (Results 1 - 2 of 2) sorted by relevance

/systemd/src/basic/
H A Dstring-util.c48 char* endswith(const char *s, const char *postfix) { argument
52 assert(postfix);
55 pl = strlen(postfix);
63 if (memcmp(s + sl - pl, postfix, pl) != 0)
69 char* endswith_no_case(const char *s, const char *postfix) { argument
73 assert(postfix);
76 pl = strlen(postfix);
84 if (strcasecmp(s + sl - pl, postfix) != 0)
H A Dstring-util.h88 char *endswith(const char *s, const char *postfix) _pure_;
89 char *endswith_no_case(const char *s, const char *postfix) _pure_;

Completed in 2057 milliseconds