int main () { char str[] =\"kk,12,,23,4,,,3434,3,33,,,\"; char * valarr; int count=0; valarr = strtok(str,\",\"); while(valarr != \'\\0\') {
Short answer: NO At least using strtok, check this to learn what's better for your application.