Hi, I need to split a NSString into chunks of 10 characters for an arbitrary length of a string and then store this into a char array.
I'm fairly new to C programming (about a day in) and only previously had experience in C++ and Objective-C.
For example given the string:
Code:
@"123454312437390989276346829038443"
I would like the following:
Code:
const char* chunks[] = {"1234543124", "3739098927", "6346829038", "443"};
I have had a look at the NSString functions for splitting strings, but nothing seems to do what I want. Some indication on how to achieve this would be appropriated.