I have my little program that has to read a number of words from different files, insert them into some skip-lists and do some other stuff afterwards.
I was given 3 tests to check the program's functionality.
For the first two tests, it works splendidly. However, the last one has a rough estimation of a few hundred thousand words in it and the fscanf() function that I use to read the files with makes the program crash after reading about 50.000 words.
Here's where the problem should be located (If the problem IS with the fscanf() function).
Note: English isn't my native language, so some of the variable names may seem strange to you
Any help or constructive criticism is greatly appreciated.
while(fscanf(definitii,"%s",aux) && !feof(definitii))
if(strlen(aux)>=3 && isValidString(aux))