The "strtok" function works on a string of characters, not on a single character.
Well I guess I'm confused, because I thought my 'char d' was a string of Characters, the r128 g004 b023 that I gave in the example.
The iPhone app could include a closing character, but Im not sure how I would put it in an array like you say. Could you show me a code example?