Papers/programming
_msize
tomato13
2008. 3. 13. 16:30
// Returns the size of a memory block allocated in the heap
size_t _msize( void *memblock );
ex)
#include <malloc.h>
int TC14()
{
char* pStr;
int nSize;
pStr = (char*)malloc(10*sizeof(char));
nSize = _msize(pStr);
printf("nSize = %d\n", nSize);
return 1;
}