diff options
author | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-04-14 23:54:09 +0000 |
---|---|---|
committer | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-04-14 23:54:09 +0000 |
commit | 6a9ecf28cc3041ab0fe16901ac29cbaca1e53d49 (patch) | |
tree | 5498efbc159026f077001d10b89cff448d2b0f11 /wk5/pset/speller/dictionary.c | |
parent | d4caa2cdb94c33eb845d15b6e728068ae325530a (diff) |
Sun, Apr 14, 2024, 4:54 PM -07:00
Diffstat (limited to 'wk5/pset/speller/dictionary.c')
-rw-r--r-- | wk5/pset/speller/dictionary.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/wk5/pset/speller/dictionary.c b/wk5/pset/speller/dictionary.c index 92275d4..d0d34cb 100644 --- a/wk5/pset/speller/dictionary.c +++ b/wk5/pset/speller/dictionary.c @@ -32,11 +32,13 @@ unsigned int hash(const char *word) return toupper(word[0]) - 'A'; } +FILE *file = NULL; + // Loads dictionary into memory, returning true if successful, else false bool load(const char *dictionary) { // TODO - FILE *file = fopen(dictionary, "r"); + file = fopen(dictionary, "r"); if (file != NULL) { return true; |