Remarks. The _msize function returns the size, in bytes, of the memory block allocated by a call to calloc, malloc, or realloc. When the application is linked with a debug version of the C run-time libraries, _msize resolves to _msize_dbg.