Ok, so I'm assuming that _msize is for VC++, so is there a routine that does the same thing I can use in Linux?
Why not keep track of your allocation sizes internally instead of relying on such non-standard things?
(Even in the case of VC, _msize is not going to work for allocations that do not cross the CRT heap.)