I want to replace the sprintf()
to snprintf()
of my project.
So I write a shell to replace sprintf()
to MY_SPRINTF
and then,
#define MY_SPRINTF(buf,args...) snprintf(buf,sizeof(buf), ## args).
However, the parameter "buf" is a pointer somewhere in my project that make my replacement not work correctly.
I want to figure out whether the parameter "buf" is a pointer when compiling. Is it possible ?