I'm surprised there aren't more problems! Look at the following code:
while ((ch = fgetc(d)) != EOF)
fscanf(d, "%s", dictword);
The while statement scans the first letter from each line in the input file. Next, the fscanf line scans the rest of the "current" line.
In the case of a dictionary where "A" is the ...
First, since the global declarations and other code that comes at the top of the file weren't included, I've had to guess at some things to test the code.
I suspect that sumstring, used in the hash function, is declared as a global. If so, that's a big problem here. Since it's not initialized inside of the hash function, it is also not reset between calls. ...