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

Function private_array_create

lib_acl/src/private/private_array.c:114–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114ACL_ARRAY *private_array_create(int init_size)
115{
116 ACL_ARRAY *a;
117
118 a = (ACL_ARRAY *) calloc(1, sizeof(ACL_ARRAY));
119 acl_assert(a);
120
121 array_init(a);
122 a->iter_head = array_iter_head;
123 a->iter_next = array_iter_next;
124 a->iter_tail = array_iter_tail;
125 a->iter_prev = array_iter_prev;
126
127 if(init_size > 0)
128 array_prepare_append(a, init_size);
129
130 return(a);
131}
132
133void private_array_clean(ACL_ARRAY *a, void (*free_fn)(void *))
134{

Callers 3

mem_slice_createFunction · 0.85
acl_mem_slice_initFunction · 0.85
private_vstream_fdopenFunction · 0.85

Calls 3

callocFunction · 0.85
array_initFunction · 0.85
array_prepare_appendFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…