I am writing C in Xcode. That is, it's all ANSI C, without Objective-C stuff, although I am editing the .m file.
I noticed I can't overload the C functions (with different parameter types).
I understand that C does not define function overloading, but is there a workaround (out of curiosity) that does not require defining a class and then writing a method?
This is just for curiosity; I am thinking that such a feature could be useful for certain types of porting exercises (porting C code from elsewhere to run on OSX/iOS).
Thanks.
I noticed I can't overload the C functions (with different parameter types).
I understand that C does not define function overloading, but is there a workaround (out of curiosity) that does not require defining a class and then writing a method?
This is just for curiosity; I am thinking that such a feature could be useful for certain types of porting exercises (porting C code from elsewhere to run on OSX/iOS).
Thanks.