C Board  

Go Back   C Board > General Programming Boards > C Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 07-05-2008, 07:49 AM   #1
Registered User
 
Join Date: Feb 2008
Posts: 55
Overriding a method in C

Hi everyone

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 )

Cheers

David
DavidDobson is offline   Reply With Quote
Old 07-05-2008, 07:51 AM   #2
Deathray Engineer
 
MacGyver's Avatar
 
Join Date: Mar 2007
Posts: 3,211
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.
__________________
MacGyver is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
on method pointers and inheritance BrownB C++ Programming 2 03-02-2009 07:50 PM
stuck on display method shintaro C++ Programming 2 02-01-2009 05:17 PM
Best communication method to thousand childs? Ironic C Programming 8 11-08-2008 12:30 AM
C# method siten0308 C# Programming 6 07-15-2008 07:01 AM
I need some help about delaying a method from returning the answer, Asynchronous.. legolas.wood C++ Programming 2 01-22-2008 04:22 PM


All times are GMT -6. The time now is 04:59 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22