I have a C array declared like char* arrayOfVarNames[3];
This array is populated by some api and the strings in this array are again used by an objective-C method.
I want to know if there are any null strings in the arrayOfVarNames[3] before passing to the objective-C method. NSString *tempString = [NSString stringWithCString:arrayOfVarNames[i] encoding:NSUTF8StringEncoding];
Anyway to check for null strings?
strlen(the_char_ptr)==0. If you mean null pointers, thenthe_char_ptr==NULL.!*the_char_ptrresp.!the_char_ptr.