Try this :
CODE
char line[] = "1,0,0,0,0,0,2,2,1,0";
char special[] = ",";
char* token = NULL;
int i;
token = strtok(line, special);
while( token != NULL )
{
token = strtok( NULL, special);
}
strtok() points to the next token in the string so you don't keep calling it on the same string.