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

Function acl_array_pre_append

lib_acl/src/stdlib/common/acl_array.c:412–422  ·  view source on GitHub ↗

if you are going to append a known and large number of items, * call this first */

Source from the content-addressed store, hash-verified

410 * call this first
411 */
412void acl_array_pre_append(ACL_ARRAY *a, int app_count)
413{
414 const char *myname = "acl_array_pre_append";
415
416 if (app_count <= 0)
417 acl_msg_fatal("%s(%d)->%s: invalid input",
418 __FILE__, __LINE__, myname);
419
420 if (a->count + app_count > a->capacity)
421 acl_array_grow(a, a->count + app_count);
422}
423
424void *acl_array_index(const ACL_ARRAY *a, int idx)
425{

Callers 1

acl_array_dbuf_createFunction · 0.85

Calls 2

acl_msg_fatalFunction · 0.85
acl_array_growFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…