Ccna final exam - java, php, javascript, ios, cshap all in one. This is a collaboratively edited question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
Friday, February 24, 2012
Objective-c calling C function
Hello i want to call a c Function from an objective c method how can i do that?
Just as you will in a C program:
ReplyDelete-(void) myVoidMethod {
BOOL res;
res = test();
}
Don't forget to declare / include relevant header (again, just like in a C program).
Also, as daknøk mentioned, Objective-C is a strict superset of C, so what works with C - works with Objective-C.