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

Function quote_split

lib_acl/samples/string/main.c:3–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1#include "lib_acl.h"
2
3static void quote_split(const char* str, const char* delim)
4{
5 ACL_ITER iter;
6 ACL_ARGV *tokens = acl_argv_quote_split(str, delim);
7
8 printf("---------------------------------------------\r\n");
9 printf("str = [%s], delim = [%s]\r\n", str, delim);
10 acl_foreach(iter, tokens) {
11 const char* ptr = (const char*) iter.data;
12 printf("%s\r\n", ptr);
13 }
14
15 acl_argv_free(tokens);
16}
17
18static void test_quote_split(void)
19{

Callers 1

test_quote_splitFunction · 0.85

Calls 3

acl_argv_quote_splitFunction · 0.85
acl_argv_freeFunction · 0.85
acl_foreachFunction · 0.50

Tested by 1

test_quote_splitFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…