summaryrefslogtreecommitdiff
path: root/wk5/pset/speller/dictionary.c
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-04-28 21:40:28 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-04-28 21:40:28 +0000
commita9491266135d59b0d24b29175c755e3955d08dde (patch)
tree6fb8d5da6df86dfbbc7ffb480c4d8cc07a816d1d /wk5/pset/speller/dictionary.c
parenta946dbb2295d62c52a7cecac6948cb014b0074ca (diff)
Sun, Apr 28, 2024, 2:40 PM -07:00
Diffstat (limited to 'wk5/pset/speller/dictionary.c')
-rw-r--r--wk5/pset/speller/dictionary.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/wk5/pset/speller/dictionary.c b/wk5/pset/speller/dictionary.c
index c9bdce5..9d82029 100644
--- a/wk5/pset/speller/dictionary.c
+++ b/wk5/pset/speller/dictionary.c
@@ -48,9 +48,13 @@ bool load(const char *dictionary)
//read each word in dictionary
char c;
- char *tempword
- while (fread(&c, 1, 1, source) != 0) {
- if ()
+ char *tempword;
+ while (fread(&c, 1, 1, source) != 0)
+ {
+ if (c != "\n")
+ {
+ tempword += c;
+ }
}