I am working on a problem that goes as follows:
I have the executable file ready with me. I know the source code has a function named f(). I know the entire signature of the function. However, I do not have the source code available with me. I donot have any other header file etc with me either.
Now, I need to override this function f() with my own function f(). How can I achieve that?
Also, main function exists in the existing executable. So, I do not intend to use this executable as a library and then call all the functions in the new code.
Any pointers on this would be welcome.