Efficient method to split comma-separated values?

is my code ok?

Yes, it is.

how can it be improved?

You could re-implement strtok(). But, why?