Searched defs:needle (Results 1 - 1 of 1) sorted by relevance

/lxc/src/lxc/
H A Dutils.c601 char *lxc_string_replace(const char *needle, const char *replacement, const char *haystack) argument
606 size_t needle_len = strlen(needle);
623 for (last_p = (char *)haystack, p = strstr(last_p, needle); p; last_p = p, p = strstr(last_p, needle)) {
656 bool lxc_string_in_array(const char *needle, const char **haystack) argument
659 if (!strcmp(needle, *haystack))
787 bool lxc_string_in_list(const char *needle, const char *haystack, char _sep) argument
792 if (!haystack || !needle)
798 if (strcmp(needle, token) == 0)

Completed in 21 milliseconds