What is token defined as? Is it an array of pointers which you've allocated space for? Or is it just a simple array or pointer? Meaning is it:
Code:
char token1[SOMESIZE]; /* like this? ( an array )*/
char *token2; /* or like this? ( a pointer )*/
Or is it something:
Code:
char *token1[SOMESIZE]; /* like this? ( an array of pointers ) */
char **token2; /* or this? ( a pointer to a pointer ) */
If it is one of the first two, then you're doing it wrong, and it should be:
Code:
if( strcmp( token, "int" ) == 0 )
Quzah.