#include <alloc_ctx.h> #include <alloc_ctx_pool.h> int create_pool_ctx(ctxp) alloc_ctx *ctxp;
alloc_ctx_pool
provides a pool-based memory allocation abstraction. This is useful for
deallocating many pointers using a single call (AC_delete()
). alloc_ctx_pool
zeros memory when
it is freed. A pool alloc_ctx
is created by a call to create_pool_ctx()
.
See alloc_ctx for information on using the alloc_ctx
abstraction.
create_pool_ctx()
returns NO_ERROR
. On failure, it returns
ALLOC_CTX_ERR_MEMORY
.
Copyright © 1996, 1997, Visa International Service Association and MasterCard International Incorporated
All Rights Reserved.