diff options
author | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-04-28 22:38:47 +0000 |
---|---|---|
committer | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-04-28 22:38:47 +0000 |
commit | 0e96d975b42e76d75a0a1c4c30f09c046e582f5e (patch) | |
tree | bb729f6809d6cd371334abda9bf7f0d72128cb81 /wk5/pset/speller/dictionary.c | |
parent | 013ba49226f5cc86d29dc152241f6ee8a435def6 (diff) |
Sun, Apr 28, 2024, 3:38 PM -07:00
Diffstat (limited to 'wk5/pset/speller/dictionary.c')
-rw-r--r-- | wk5/pset/speller/dictionary.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/wk5/pset/speller/dictionary.c b/wk5/pset/speller/dictionary.c index bb338b6..db74939 100644 --- a/wk5/pset/speller/dictionary.c +++ b/wk5/pset/speller/dictionary.c @@ -71,11 +71,10 @@ bool load(const char *dictionary) ptr->next = NULL; // hash the word to find the bucket it goes in int val = hash(word); - // put + // put new node at begining of bucket if (table(val)->next != NULL) { - char = 0; - while() + ptr->next = table(0)->next; } } |