FIND SIZE OF MEMORY ALLOCATE???

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> > 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 ]





[Index of Archives]     [Kernel Newbies]     [Red Hat General]     [Fedora]     [Red Hat Install]     [Linux Kernel Development]     [Yosemite News]

  Powered by Linux