My situation is as follows: I need to build a library where I export a "wrapped"strcpy
(please ignore how that is useful to me) which the only thing it does is call the standard (from string.h
) strcpy
but return void
, instead of returning char *
. Which means, I need to #include string.h
but this will immediately give me strcpy
and gcc
won't let me re-define it as I wish, and build a .so
shared library exporting only the new, wrapped strcpy
. How can I accomplish that?
↧
Exporting symbols under a different name
↧