Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Gets number of available blocks in dynamic memory pool. This call will fail with a dynamic memory pool for which no limit was set at creation.

Files

lib_mem.h/lib_mem.c

Prototype

Arguments

p_pool

Pointer to pool data.

p_err

Pointer to variable that will receive the return error code from this function.

LIB_MEM_ERR_NONE

LIB_MEM_ERR_NULL_PTR

LIB_MEM_ERR_POOL_UNLIMITED

Returned Value

Number of blocks available in dynamic memory pool, if successful.

0, if the pool is empty or if an error occured.

Required Configuration

None.

Notes / Warnings

None.

  • No labels