From 0e96d975b42e76d75a0a1c4c30f09c046e582f5e Mon Sep 17 00:00:00 2001 From: Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> Date: Sun, 28 Apr 2024 22:38:47 +0000 Subject: Sun, Apr 28, 2024, 3:38 PM -07:00 --- wk5/pset/speller/dictionary.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'wk5/pset/speller/dictionary.c') 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; } } -- cgit v1.2.3