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

Function build_xml

lib_acl/samples/xml/xml1/xml.c:167–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167static void build_xml(ACL_XML *xml, const char *data)
168{
169 ACL_VSTRING *buf = acl_xml_build(xml, NULL);
170 ACL_FILE *fp = acl_fopen("./build_xml.txt", "wb");
171
172 acl_assert(fp);
173
174 printf("--------------in build_xml -------------------\n");
175 printf("%s\r\n", acl_vstring_str(buf));
176 acl_fwrite(acl_vstring_str(buf), ACL_VSTRING_LEN(buf), 1, fp);
177 printf("----------------------------------------------\n");
178 printf("%s\r\n", data);
179 acl_fclose(fp);
180 printf("--------------end in build_xml----------------\n");
181 acl_vstring_free(buf);
182}
183
184static void parse_xml(int once, const char *data)
185{

Callers 1

parse_xmlFunction · 0.70

Calls 5

acl_xml_buildFunction · 0.85
acl_fopenFunction · 0.85
acl_fwriteFunction · 0.85
acl_fcloseFunction · 0.85
acl_vstring_freeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…