diff options
author | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-04-28 21:47:31 +0000 |
---|---|---|
committer | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-04-28 21:47:31 +0000 |
commit | 3bfe59b584aa19d4228f1bd55cd2183349194d0f (patch) | |
tree | 67f3f5560f48d85541b65ba2ab2ffc41a12e7e81 /wk5/pset/speller | |
parent | 80455e9894fd4e7ce182cac13dc98c00b816f099 (diff) |
Sun, Apr 28, 2024, 2:47 PM -07:00
Diffstat (limited to 'wk5/pset/speller')
-rw-r--r-- | wk5/pset/speller/dictionary.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/wk5/pset/speller/dictionary.c b/wk5/pset/speller/dictionary.c index 2b6a84f..dab6d2b 100644 --- a/wk5/pset/speller/dictionary.c +++ b/wk5/pset/speller/dictionary.c @@ -52,15 +52,7 @@ bool load(const char *dictionary) //read each word in dictionary char c; - char *tempword; - while (fread(&c, 1, 1, source) != 0) - { - if (c != "\n") - { - tempword += c; - } - - } + fscanf(file, "%s", &c) // Close the dictionary file fclose(source); |