INtime SDK Help
heap_buffer_size
INtime SDK v6 > About INtime > Other system libraries > Heaps and memory pools > C/C++ Runtime heap > heap_buffer_size

Reports the size of a buffer returned by calloc, malloc, or realloc.

size_t heap_buffer_size(void *p);

Parameters

p
Buffer returned by calloc, malloc, or realloc.

Remarks

Buffers always have a length of at least four and may be larger than the length requested by calloc, malloc, or realloc.

Return Values

The buffer's size
Success.
0 (zero)
Failure. The function sets errno to one of these values:
EEXIST The heap was deleted.
EINVAL The heap is not a valid MPOOL.

Requirements

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

C library