never mind, I am doing the token counting as follows:
I would still like to know why valid code that compiles and debugs fine, apart from pointer issues doing things they ought not to, causes crashes in C using MinGW.
while (tokens != NULL) // Count number of tokens
//printf("%s ", tokens); // Could print them too right here
tokens = strtok(NULL, delmtrs); // Nullifies previous token, pointing to next
I code in Java and have to work to make the program crash and even then it soft resets at times. Still love C though cause I can hack memory easily and write viruses for all your computers easily