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

/sssd-io/src/tests/cmocka/
H A Dtest_utils.c1251 const char *l1[] = {"a", "b", "c", NULL}; local
1270 ret = add_strings_lists(global_talloc_context, l1, NULL, false, &res);
1273 for (c = 0; l1[c] != NULL; c++) {
1275 assert_int_equal(memcmp(&l1[c], &res[c], sizeof(char *)), 0);
1280 ret = add_strings_lists(global_talloc_context, l1, NULL, true, &res);
1283 for (c = 0; l1[c] != NULL; c++) {
1286 assert_int_not_equal(memcmp(&l1[c], &res[c], sizeof(char *)), 0);
1287 assert_string_equal(l1[c], res[c]);
1292 ret = add_strings_lists(global_talloc_context, NULL, l1, false, &res);
1295 for (c = 0; l1[
[all...]
/sssd-io/src/tests/
H A Dutil-tests.c204 char **l1; local
215 l1 = talloc_array(test_ctx, char *, 4);
216 l1[0] = talloc_strdup(l1, "a");
217 l1[1] = talloc_strdup(l1, "b");
218 l1[2] = talloc_strdup(l1, "c");
219 l1[3] = NULL;
222 l2[0] = talloc_strdup(l1, "
[all...]
/sssd-io/src/util/
H A Dutil.c744 errno_t add_strings_lists(TALLOC_CTX *mem_ctx, const char **l1, const char **l2, argument
754 if (l1 != NULL) {
755 for (l1_count = 0; l1[l1_count] != NULL; l1_count++);
773 new[c] = talloc_strdup(new, l1[c]);
789 if (l1 != NULL) {
790 memcpy(new, l1, sizeof(char *) * l1_count);

Completed in 21 milliseconds