From 6a9ecf28cc3041ab0fe16901ac29cbaca1e53d49 Mon Sep 17 00:00:00 2001
From: Fudgerboy <91767657+Fudgerboy@users.noreply.github.com>
Date: Sun, 14 Apr 2024 23:54:09 +0000
Subject: Sun, Apr 14, 2024, 4:54 PM -07:00

---
 wk5/pset/speller/dictionary.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'wk5')

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;
-- 
cgit v1.2.3