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

Function test5

lib_acl_cpp/samples/benchmark/split/main.cpp:79–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79static void test5() {
80 for (int i = 0; i < max; i++) {
81 ACL_ARGV_VIEW *view = acl_argv_view_split(str, sep);
82 if (i > 0) {
83 acl_argv_view_free(view);
84 continue;
85 }
86
87 printf("Use acl_argv_view_split:\r\n");
88 ACL_ITER iter;
89 acl_foreach(iter, view) {
90 printf("%s ", (char*) iter.data);
91 }
92 printf("\r\n");
93
94 acl_argv_view_free(view);
95 }
96}
97
98static void usage(const char* procname) {
99 printf("usage: %s -h [help]\r\n"

Callers 1

mainFunction · 0.70

Calls 2

acl_argv_view_splitFunction · 0.85
acl_argv_view_freeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…