I have a lot of code written in C, since I'm writing code for the iPhone the need of reusing this old code has arisen.
One of the first thing to do is the conversion between NSString and char *
you can convert NSString to char* simply using the following line of code:
const char *myString = [myNSString UTF8String];
NSString *myNSString = [NSString stringWithUTF8String:myString];
If you found useful this article, please share it using the social buttons below. Thank you in advance,