In C, is it possible to change exported function name to different one?
问题 all. I want to link a library which calls malloc() function. However, my target environment is different one and malloc() is supplied as inline-function. How can I make the library's call to malloc() direct to my target environment's malloc() routine? Is it any way to change the exported function name? If so I can code my_malloc() first and export it as malloc() and link the library to that one: #include <my_environment.h> // malloc() is inline function declared there void my_malloc (void) {