diff options
author | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-04-29 03:10:16 +0000 |
---|---|---|
committer | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-04-29 03:10:16 +0000 |
commit | 3711956db6619b32edb626d25ddea4e324c6a040 (patch) | |
tree | 3882d58c9b4d43209a5a5d4e971210703cc446ce /wk5/pset/speller | |
parent | a6152288a590c5377ef0fab1e445f4a9bec0a022 (diff) |
Sun, Apr 28, 2024, 8:10 PM -07:00
Diffstat (limited to 'wk5/pset/speller')
-rw-r--r-- | wk5/pset/speller/dictionary.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/wk5/pset/speller/dictionary.c b/wk5/pset/speller/dictionary.c index 75cfe8c..cf2d6d1 100644 --- a/wk5/pset/speller/dictionary.c +++ b/wk5/pset/speller/dictionary.c @@ -2,7 +2,9 @@ #include <ctype.h> #include <stdbool.h> - +#include <stdio.h> +#include <stdlib.h> +#include <string.h> #include "dictionary.h" // Represents a node in a hash table @@ -18,6 +20,9 @@ const unsigned int N = 26; // Hash table node *table[N]; +// Size integer +int siz = 0; + // Returns true if word is in dictionary, else false bool check(const char *word) { |