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

/sssd-io/src/tests/
H A Dutil-tests.c205 char **l2; local
221 l2 = talloc_array(test_ctx, char *, 4);
222 l2[0] = talloc_strdup(l1, "d");
223 l2[1] = talloc_strdup(l1, "c");
224 l2[2] = talloc_strdup(l1, "b");
225 l2[3] = NULL;
228 l1, l2,
246 l1, l2,
261 l1, l2,
275 l1, l2,
[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
758 if (l2 != NULL) {
759 for (l2_count = 0; l2[l2_count] != NULL; l2_count++);
781 new[l1_count + c] = talloc_strdup(new, l2[c]);
793 if (l2 != NULL) {
794 memcpy(&new[l1_count], l2, sizeof(char *) * l2_count);
H A Dutil.h409 * @param[in] l2 Second NULL-termintated list of strings.
417 errno_t add_strings_lists(TALLOC_CTX *mem_ctx, const char **l1, const char **l2,
/sssd-io/src/tests/cmocka/
H A Dtest_utils.c1252 const char *l2[] = {"1", "2", "3", NULL}; local
1314 ret = add_strings_lists(global_talloc_context, l1, l2, false, &res);
1321 for (d = 0; l2[d] != NULL; d++) {
1322 assert_int_equal(memcmp(&l2[d], &res[c+d], sizeof(char *)), 0);
1327 ret = add_strings_lists(global_talloc_context, l1, l2, true, &res);
1336 for (d = 0; l2[d] != NULL; d++) {
1337 assert_int_not_equal(memcmp(&l2[d], &res[c+d], sizeof(char *)), 0);
1338 assert_string_equal(l2[d], res[c+d]);

Completed in 15 milliseconds