char to NsString
char *a = "Testing";
NSString *aa = [NSString stringWithCString: (const char *)a encoding: NSASCIIStringEncoding];NSLog(@"%@", aa);
#############################################
NSString to c char
char * c_string = [someNSString UTF8String];
No comments:
Post a Comment