I haven't done anything in C for many years. But I've gotten into Objective-C easily and I think its great. However, even trying to embed a simple C function is something I can't get to work. This gives me a compiler error of "Conflicting Types", does anyone know what I'm doing wrong?
Code:
NSString* testStringFunction(NSString *in) {
return [in stringByReplacingOccurrencesOfString:@"a" withString:@"b"];
}
... somewhere else in a Obj-C selector ...
NSLog(testStringFunction(@"This 'a' should be a 'b' now."));
Thanks!