I tried changing the line to
Code:
char index[256] ;
and when I tried compiling, my strtok returns a char* not an array.