Lines Matching defs:list
41 char **list = NULL;
85 /* Copy the substring to the output list of strings */
87 list = talloc_realloc(tmp_ctx, list, char*, num_strings + 2);
88 if (list == NULL) {
94 list[num_strings] = talloc_strndup(list, substr_begin, substr_len);
95 if (list[num_strings] == NULL) {
104 if (list == NULL) {
106 list = talloc(tmp_ctx, char *);
107 if (list == NULL) {
112 list[num_strings] = NULL;
118 *_list = talloc_steal(mem_ctx, list);
125 bool string_in_list(const char *string, char **list, bool case_sensitive)
130 if (string == NULL || list == NULL || *list == NULL) {
136 for (c = 0; list[c] != NULL; c++) {
137 if (compare(string, list[c]) == 0) {