Hello!
I have the following question:
Does Microsoft Visual Studio (I'm using 2008 SP1) offer any way to override standart C functions such as malloc
, memcpy
?
Suppose I have some externally built library, which contains malloc.obj
and memcpy.obj
.
Library is called library.lib
.
How should I build my project so that the compiler uses my (overriden) versions of malloc()
and memcpy()
routines instead of those provided (I assume they share the same syntax)?
The point of whole this thing is about changing every malloc
in my project without making name aliases like my_malloc
or similiar, so that I could compare performance.
Is this possible?
Thank you.