I am having an iOS Project in which i use some C-Sources.
In the C part I need the path to a file in the mainbundle.
How can I obtain it without using Obj-C?
Basically I want to have the path returned by:
NSLog(@"%s",[[[NSBundle mainBundle] pathForResource:@"myfile" ofType:@"txt"] fileSystemRepresentation]);
Best you read the path with objective-c and pass it as char * to the c class by calling a function.
You further could asign a global variable char * which is visible for both objective-c and C.