INtime SDK Help
mpool_buffer_cnt
INtime SDK v7 > About INtime > Other system libraries > Heaps and memory pools > Memory pools > mpool_buffer_cnt

Returns the current number of buffers created by mpool_alloc or mpool_realloc.

DWORD mpool_buffer_cnt(
    MPOOL pool
);

Parameters

pool
The memory pool created by mpool_create.

Return Values

Greater than or equal to 0 (zero)
Success.
ULONG_MAX
Failure. The function sets errno to one of these values:
EEXIST The pool is deleted.
EINVAL The pool is invalid.

Requirements

Versions Defined in Include Link to
INtime 4.0 intime/rt/include/mpool.h mpool.h clib.lib
   
See Also