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

Function create_tcell

app/wizard/tpllib.cpp:151–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149
150
151static tpl_tcell_t* create_tcell(const char *key, int key_len)
152{
153 tpl_tcell_t* section = (tpl_tcell_t*)acl_mymalloc(key_len + 1
154 + sizeof(tpl_tcell_t)
155 + sizeof(tpl_t));
156 section->tpl = (tpl_t *)(section + 1);
157 tpl_init(section->tpl);
158
159 section->key = (char *)(section->tpl + 1);
160 (void)memcpy(section->key, key, key_len);
161
162 section->key[key_len] = 0;
163 section->next = NULL;
164 section->_next = NULL;
165 return section;
166}
167
168
169static void destroy_tcell(tpl_tcell_t* section)

Callers 1

tpl_produce_sectionFunction · 0.70

Calls 2

memcpyFunction · 0.85
tpl_initFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…