1.
I am using strtok() and am storing the return value into a char array.
eg. char word[];
word = strtok(file[][], " ");
Do I need to initialize 'word' to a constant size before using it? The thing is I don't know how big the string from strtok is going to be and I will constantly be using 'word' to store different size strings I pull from strtok each time I call it.
Also when I am testing to make sure word is not NULL (since when nothing is left on the line I am reading from, strtok returns NULL) which one of these work?
eg. if(word != NULL) or if(word[0] != NULL)
2.
What is the function for finding the size of of a two dimensional array's first dimension?
eg. char array[ the size of this one ] []
Thanks