Name
ap_make_array — allocate an array of arbitrary-size elements
Synopsis
array_header *ap_make_array(pool *p, int nelts, int elt_size)
Allocates memory to
contain
nelts
elements of size
elt_size
. The array can grow to contain as many
elements as needed. The array is destroyed when the pool is
destroyed. Returns a pointer to the new array.
Get Apache: The Definitive Guide, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.