Hi !

I use the following to read a token :

char delimiter[] = " ";
char *token;


token = strtok( line, delimiter);
while( token != NULL ) {

printf( " %s\n", token );
token = strtok( NULL, delimiter );
}

i want to cast the toket that i read to integer and insert it to array.

anyone ?