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

Function main

lib_acl/samples/code/main.c:193–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191}
192
193int main(void)
194{
195 const char *src = "%E4%B8%AD%E5%9B%BD%0A%E4%B8%AD%E5%9B%BD%0A%E4%B8%AD%E5%9B%BD";
196/*
197 char buf[256], *dst;
198*/
199 char *dst;
200
201 if (0) {
202 create_map1();
203 return (0);
204 } else if (1) {
205 create_map2();
206 return (0);
207 } else if (2) {
208 test_map2();
209 return (0);
210 }
211
212 printf("src(%s)\n", src);
213 dst = acl_url_decode(src, NULL);
214 printf("dst(%s)\n", dst);
215
216/*
217 if (acl_utf8_to_gb2312(dst, strlen(dst), buf, sizeof(buf)) > 0)
218 printf("ok, buf(%s)\n", buf);
219 else
220 printf("error\n");
221
222 src = "中国";
223 if (acl_utf8_to_gb2312(src, strlen(src), buf, sizeof(buf)) > 0)
224 printf("ok, buf(%s)\n", buf);
225 else
226 printf("error\n");
227*/
228 return (0);
229}

Callers

nothing calls this directly

Calls 4

create_map1Function · 0.85
create_map2Function · 0.85
test_map2Function · 0.85
acl_url_decodeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…