I have four files f1,f2,f3 and f4 with same function names and signature but different implementation.
f1 :
func1(int par1,int par2)
f2 :
func1(int par1,int par2)
f3 :
func1(int par1,int par2)
f4 :
func1(int par1,int par2)
now each function will be called depending on some version ID , for example if version ID is 1 i will call func1 of file 1 if it is 2 I will call func1 of file 2 .How can I implement it !
I tried creating another function argument as version ID but then I have to change all the function signature which is not acceptable.This has to be done in C .Had it been in C++ i could have created a class and could have put each file content in a new class and then created the instance of each class but its pure C.
Or is there any #Pragma for the same!
Any inputs !