summaryrefslogtreecommitdiff
path: root/wk5
diff options
context:
space:
mode:
Diffstat (limited to 'wk5')
-rw-r--r--wk5/pset/speller/dictionary.c4
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;