> > How to find out the size of memory allocated to a pointer??? > there is no way to do that with gcc. You may write a little modified version of malloc that stores some info about allocations made, and you may use this version as a wrapper of the original malloc. -- Określ Swoje potrzeby - my znajdziemy ofertę za Ciebie! [ http://oferty.onet.pl ]