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

Function tpl_out

app/wizard/tpllib.cpp:1266–1283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1264}
1265
1266void tpl_out(tpl_t *tpl, ACL_VSTREAM *out)
1267{
1268 char *buf;
1269 int n;
1270
1271 if (tpl == NULL)
1272 return;
1273 if (out == NULL)
1274 out = ACL_VSTREAM_OUT;
1275
1276 n = tpl_length(tpl);
1277 if (n <= 0)
1278 return;
1279 buf = (char*) acl_mymalloc(n + 1);
1280 tpl_get_content(tpl, buf);
1281 acl_vstream_writen(out, buf, n);
1282 acl_myfree(buf);
1283}

Callers

nothing calls this directly

Calls 3

acl_vstream_writenFunction · 0.85
tpl_lengthFunction · 0.70
tpl_get_contentFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…