msize

Microsoft-specific C function - not part of ANSI C

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.

See Also

calloc, free

Comments

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