Possible Duplicate:
Best strategy for profiling memory usage of my code (open source) and 3rd party code(closed source)
I am thinking of implementing a memory tracking tool to track malloc's in my code by having a library that I will link in at compile time to override malloc with a macro to add some additional debugging info that will print some stuff to a log. Is it possible to possibly do this with a third party library that I do not have source code, or possibly debug libraries available? Can you link in a library like I am talking about to a third party library and it will use the methods (or macros) defined in my library?
Thanks