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

Function tpl_write

app/wizard/tpllib.cpp:1207–1220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1205#endif
1206
1207int tpl_write(const tpl_t* tpl, int fd)
1208{
1209 int len = tpl_length(tpl);
1210 char *content = (char *)acl_mymalloc(len + 1);
1211
1212 tpl_get_content(tpl, content);
1213 len = write(fd, content, len);
1214 acl_myfree(content);
1215
1216 if (len < 0)
1217 return TPL_WRITE_ERROR;
1218
1219 return TPL_OK;
1220}
1221
1222
1223int tpl_http_write(const tpl_t* tpl, int fd)

Callers

nothing calls this directly

Calls 3

tpl_lengthFunction · 0.70
tpl_get_contentFunction · 0.70
writeFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…