Valhalla Legends Archive

Programming => General Programming => C/C++ Programming => Topic started by: Sorc.Polgara on February 08, 2006, 01:23 PM

Title: [C++] Is there a routine that does what _msize does in VC++ for Linux?
Post by: Sorc.Polgara on February 08, 2006, 01:23 PM
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?
Title: Re: [C++] Is there a routine that does what _msize does in VC++ for Linux?
Post by: Skywing on February 09, 2006, 08:55 AM
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.)