Searched refs:l1 (Results 1 - 4 of 4) sorted by relevance

/sssd/src/tests/
H A Dutil-tests.c203 char **l1; local
214 l1 = talloc_array(test_ctx, char *, 4);
215 l1[0] = talloc_strdup(l1, "a");
216 l1[1] = talloc_strdup(l1, "b");
217 l1[2] = talloc_strdup(l1, "c");
218 l1[3] = NULL;
221 l2[0] = talloc_strdup(l1, "
[all...]
/sssd/src/tests/cmocka/
H A Dtest_utils.c1244 const char *l1[] = {"a", "b", "c", NULL}; local
1263 ret = add_strings_lists(global_talloc_context, l1, NULL, false, &res);
1266 for (c = 0; l1[c] != NULL; c++) {
1268 assert_int_equal(memcmp(&l1[c], &res[c], sizeof(char *)), 0);
1273 ret = add_strings_lists(global_talloc_context, l1, NULL, true, &res);
1276 for (c = 0; l1[c] != NULL; c++) {
1279 assert_int_not_equal(memcmp(&l1[c], &res[c], sizeof(char *)), 0);
1280 assert_string_equal(l1[c], res[c]);
1285 ret = add_strings_lists(global_talloc_context, NULL, l1, false, &res);
1288 for (c = 0; l1[
[all...]
/sssd/src/util/
H A Dutil.c843 errno_t add_strings_lists(TALLOC_CTX *mem_ctx, const char **l1, const char **l2, argument
853 if (l1 != NULL) {
854 for (l1_count = 0; l1[l1_count] != NULL; l1_count++);
872 new[c] = talloc_strdup(new, l1[c]);
888 if (l1 != NULL) {
889 memcpy(new, l1, sizeof(char *) * l1_count);
H A Dutil.h388 * @param[in] l1 First NULL-termintated list of strings.
397 errno_t add_strings_lists(TALLOC_CTX *mem_ctx, const char **l1, const char **l2,

Completed in 1153 milliseconds