hi ,
greetings ,
I have one doubt reg the C functions .
I have a program sample.c , in which i have function name scanf , which reads a a variable and prints the variable inside the function .
this scanf is nothing to do with C library function scanf , but i would like to use only user defined c function scanf .
when it is compiling , it is throwing error indicating scanf args not matching becos compile checks for stdio.h header file for syntax of scanf .
To put in a simple statement , i would like to override a system function and make my c program to take function which i wrote which has same name .
It can be a similar concept of function overloading in C .
For example :
in case macros i can overide any macro inside my program just by doing #undef name
#define name "unix"
it works for macros ,
in same line how to override the function?
Many Thanks in advance !
Thanks
Naren