Efficient method to split comma-separated values?

@taurisco:

bool parsePacket(int c)

So, the function take an int.

    done = parsePacket(packetBuffer);

So, why are passing it an array of chars?