Efficient method to split comma-separated values?

why not make a parser that reads until a ',' and put the just read field in the appropriate index of an integer array?

int fields[30]; // would take 60 bytes iso 152 you need for holding the string

and yes you need an index and maybe a few more..