hi again. again on the subject of dynamic memory allocation for arrays of strings, or whatever, is there any c function or any other way in general that catches memory leaks or tell how much mem is used at any point (i asume that if i make a log file with the free mem at regular intervals it may be possible to identify memory leaks)?
in general, how can i see the mem my prog uses at any time?
moreover, is there any trick to imitate destructors in c?
i'm asking this after realising that i was forgeting to free the mem i got from malloc...
thanks
null



LinkBack URL
About LinkBacks



It's a nice practice task for newcomers, too. And it's something you can later really use ... maybe 