function returning String-Array
Some tips:


Don't use String.
Use char * and slice the string in-place.
Pass a pointer to an array of pointers and fill that with pointers to the portions of the string you have sliced.
Return the number of entries in the array you used.


I do something similar in my CLI library.  I use a custom "getWord" function, but similar can be done with strtok().

You can read more about working with C strings here.