Returns the size of a memory block.
#include <stdlib.h> size_t msize ( void *buffer);
Returns the size of the memory block pointed to by buffer.
The msize function returns the size of the memory block that was allocated by a call to calloc, malloc, or realloc. The returned size is always as large as the requested size, but can be larger depending upon how the allocator is set up. For example, msize can show that a request for a 19 byte block of memory really allocated 24 bytes, while a request for a 25 byte block allocated 56 bytes.