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.
Required Configuration
None.
Notes / Warnings
None.