Hello i want to call a c Function from an objective c method how can i do that?
here is my function
static BOOL test () {
....
if(...){
return YES;
}else{
return NO;
}
....
}
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Just as you will in a C program:
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.