From 8e5782b61c8704c059acaa9142b0eda96b173e72 Mon Sep 17 00:00:00 2001 From: Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> Date: Sun, 28 Apr 2024 22:43:27 +0000 Subject: Sun, Apr 28, 2024, 3:43 PM -07:00 --- wk5/pset/speller/dictionary.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'wk5/pset/speller/dictionary.c') 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); -- cgit v1.2.3