Split StringObject to char array

Hi there,

somebody know how can I split a String object to char array? for example I have this: char input[] = "p/2103-02-02/16:00"; and I have to split this to a String array on the "/" delimiter.

And after I need to invoke to the elements something like this. Serial.println(starArray[0]);// p Serial.println(starArray[1]);// 2103-02-02 Serial.println(starArray[2]);// 16:00

thanks for any help.

Try again. You have a string, yet you ask about String object processing. A string and a String are NOT the same thing.

While you are contemplating what you really mean, look at strtok().