cp_mempool

Section: libcprops - cp_mempool (3)
Updated: SEPTEMBER 2006
Index Return to Main Contents
 

NAME

cp_mempool_alloc, cp_mempool_calloc - obtain memory block from a memory pool

 

SYNOPSIS

#include <cprops/mempool.h>

void *cp_mempool_alloc(cp_mempool * const pool);
void *cp_mempool_calloc(cp_mempool * const pool);

 

DESCRIPTION

cp_mempool_alloc returns an uninitialized memory block of the size defined at pool creation time from the memory pool.

cp_mempool_calloc returns a memory block of the size defined at pool creation time, initialized to contain zeros.

 

RETURN VALUE

a pointer to a memory block of the requested size or NULL if no more memory is available. cp_mempool will expand automatically if the internal allocation is exhausted, but may fail if the internal expansion operation fails.

 

SEE ALSO

cp_mempool_create(3), cp_mempool_free(3), cp_mempool_destroy(3), cp_shared_mempool(3)


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 17:58:11 GMT, September 08, 2006
SourceForge.net Logo