Not sure if this is even possible since I don't have much experience with either language but if I have a file driver.c and with in it have something like this
char *getData(int user){
unsigned char *buffer = malloc(2800);
// ... do all the stuff
return buffer;
}
int main(int argc, const char * argv[]){
int user = 1;
unsigned char *buffer = getData(user);
return 0;
}
Would I be able to access the buffer variable that is created with in the main()
function from another file/class that is written in Objective-C?