MCPcopy Create free account
hub / github.com/acl-dev/acl / test6

Function test6

lib_acl/samples/benchmark/split/main.c:187–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185}
186
187static void test6(const char *str, const char *sep) {
188 ACL_ITER iter;
189 ACL_ARGV *argv = split2(str, sep);
190
191 acl_foreach(iter, argv) {
192 const char *ptr = (const char*) iter.data;
193 printf("%s\r\n", ptr);
194 }
195
196 acl_argv_free(argv);
197}
198
199static int argv_cmp(const ACL_ARGV *argv1, const ACL_ARGV *argv2) {
200 assert(argv1->argc == argv2->argc);

Callers 1

mainFunction · 0.70

Calls 3

split2Function · 0.85
acl_argv_freeFunction · 0.85
acl_foreachFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…