When testing with the small dictionary, it unloads as expected however when testing with the large dictionary, I receive the error "Could not unload dictionaries/large."
The only difference that I've noticed between the two dictionaries is amount of words in them. Having tested the small dictionary with varying words, including apostrophe's, multiple words with same bucket, all seems to work.
When the program checks if "(hashtable == NULL)" for the large dictionary, the condition is not met but I can't seem to know figure out why.
My understanding of my code is as follows:
for each element in the hashtable have cursor point to the element in the hashtable while the cursor is null have a temporary pointer the location of cursor set cursor to the next location in the linked list free the node if the the final element in the hashtable is NULL return true else return false
// Unloads dictionary from memory, returning true if successful else false
for (int i = 0; i < N; i++)
node *cursor = hashtable[i];
while (cursor != NULL)
node *temp = cursor;
cursor = cursor->next;
if(hashtable == NULL)