Trouble manipulating comma delimited strings

lemming:
Try using the strtok function,

avr-libc: <string.h>: Strings

http://www.cplusplus.com/reference/cstring/strtok/

(unless you're hell bent on crafting your own)

I was originally going to use strtok but I read on one of the other forum threads that a known issue with strtok is that if you have empty fields it can screw it up so "data,data,data,,,data,data,,,,data" could have problems. I also had a hard time figuring out how to store the various tokens for future use. I'm not very good with pointers.....often to my detriment.