diff options
author | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-04-28 22:43:27 +0000 |
---|---|---|
committer | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-04-28 22:43:27 +0000 |
commit | 8e5782b61c8704c059acaa9142b0eda96b173e72 (patch) | |
tree | 248125f92900703f3ca7ac912ca46d406b1266d4 /wk5/pset | |
parent | 2cd06fd3845cc97ba83422adb261c30751ce92de (diff) |
Sun, Apr 28, 2024, 3:43 PM -07:00
Diffstat (limited to 'wk5/pset')
-rw-r--r-- | wk5/pset/speller/dictionary.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/wk5/pset/speller/dictionary.c b/wk5/pset/speller/dictionary.c index 5476dea..002f8ab 100644 --- a/wk5/pset/speller/dictionary.c +++ b/wk5/pset/speller/dictionary.c @@ -38,8 +38,6 @@ unsigned int hash(const char *word) return val %= 26; } - -// TODO // Loads dictionary into memory, returning true if successful, else false bool load(const char *dictionary) { @@ -77,14 +75,8 @@ bool load(const char *dictionary) ptr->next = table(val)->next; } table(val)->next = *ptr; - } - /* - use hash function - function takes string and returns index - insert node into hash table - for whatever hash index, go to end and put it there - */ + } // Close the dictionary file fclose(source); |