astSizeOf

Determine the size of a dynamically allocated region of memory

Description:

This function returns the size of a region of dynamically allocated memory.

Synopsis

size_t astSizeOf( const void ptr )

Parameters:

ptr
Pointer to dynamically allocated memory (or NULL if the size of the allocated memory was zero).

Returned Value

astSizeOf()
The allocated size. This will be zero if a NULL pointer was supplied (no error will result).

Notes: