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

Function build_callback

lib_acl/samples/json/json4/main.cpp:6–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#define STR acl_vstring_str
5
6static int build_callback(ACL_JSON *, ACL_VSTRING *data, void *ctx)
7{
8 ACL_VSTRING *buf = (ACL_VSTRING*) ctx;
9
10 if (data == NULL) {
11 printf("ALL OVER NOW!\r\n");
12 return 0;
13 }
14
15 printf("input: length: %d, |%s|\r\n", (int) LEN(data), STR(data));
16 acl_vstring_strcat(buf, STR(data));
17 return 0;
18}
19
20static void test_json_build(void)
21{

Callers

nothing calls this directly

Calls 1

acl_vstring_strcatFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…