how would you use the strtok() function then?
say i have my input array filled with 090;090;00;0;0;0;0 ( input[18] )
and i would want to read out the first 3 values 090, 090 and 00.
int tokenCount = 0;
int tokenValues[3];
char *token = strtok(input, ",");
while(token && tokenCount < 3)
{
// Do something with token
tokenValues[tokenCount++] = atoi(token);
token = strtok(NULL, ",");
}
// Now, tokenValues[] contains 90, 90, and 0