Mem_DynPoolBlkNbrAvailGet()
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
CPU_SIZE_T Mem_DynPoolBlkNbrAvailGet (MEM_DYN_POOL *p_pool, LIB_ERR *p_err)
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 occurred.
Required Configuration
None.
Notes / Warnings
None.