summaryrefslogtreecommitdiff
path: root/wk5/pset/speller/dictionary.c
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-04-28 22:27:11 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-04-28 22:27:11 +0000
commitf035bf48b1ed43222a13509e8b4016060f1c9955 (patch)
treecff576c3694220c24a0d1e427a1541c33d54663d /wk5/pset/speller/dictionary.c
parent247ce618abd76c3fcc76750bee27591fb8bc6225 (diff)
Sun, Apr 28, 2024, 3:27 PM -07:00
Diffstat (limited to 'wk5/pset/speller/dictionary.c')
-rw-r--r--wk5/pset/speller/dictionary.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wk5/pset/speller/dictionary.c b/wk5/pset/speller/dictionary.c
index e57fc5e..342f843 100644
--- a/wk5/pset/speller/dictionary.c
+++ b/wk5/pset/speller/dictionary.c
@@ -67,6 +67,8 @@ bool load(const char *dictionary)
}
// copy word from fscanf into node using strcpy
strcpy(ptr->word, word);
+ hash(word);
+ ptr->next =
}
/*