never mind, I am doing the token counting as follows:
Code:
while (tokens != NULL) // Count number of tokens
{
//printf("%s ", tokens); // Could print them too right here
count++;
tokens = strtok(NULL, delmtrs); // Nullifies previous token, pointing to next
}
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.
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