Overriding a method in C
Is there any way to override a method in c? I am using a blackbox framework when developing some code and need to alter the way a specific method works. I donít have access to the method directly (as in source) and was wondering if there was a way I could re-define the method elsewhere in my program and use my own code inside? (In effect binning the old method so I can write a better one :D)
C doesn't have "methods". It has functions. Once a function is written, it's written and that is that.
There are non-portable ways of doing this kind of thing, however, they are advanced, and you don't strike me as a person that has a good reason to do this.