NAME
alloc_ctx_pool - an alloc_ctx for secure pool-based memory allocation
SYNOPSIS
#include <alloc_ctx.h>
#include <alloc_ctx_pool.h>

int create_pool_ctx(ctxp)
    alloc_ctx         *ctxp;
DESCRIPTION
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.

RETURN VALUES
On success, create_pool_ctx() returns NO_ERROR. On failure, it returns ALLOC_CTX_ERR_MEMORY.
See Return Values for descriptions of individual error codes. For documentation on displaying or logging return values, see error_ctx.
SEE ALSO
alloc_ctx
BUGS
This document describes a beta implementation. The information contained in this document may be incomplete and is subject to change.

Copyright © 1996, 1997, Visa International Service Association and MasterCard International Incorporated
All Rights Reserved.