msize

Syntax

int msize(int pointer)

Arguments

pointer
A pointer to a memory block

Return

The size of the given memory block in bytes.

Description

Gives the size of a dynamically allocated block of memory, given only a pointer to that block of memory.

Example

Also see

calloc, free

Comments

Everyone can add his comments about his experiences with this function here. Tips for using it are welcome, too.