summaryrefslogtreecommitdiff
path: root/wk5/pset/speller/dictionary.c
diff options
context:
space:
mode:
Diffstat (limited to 'wk5/pset/speller/dictionary.c')
-rw-r--r--wk5/pset/speller/dictionary.c10
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);