diff options
author | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-04-14 05:02:38 +0000 |
---|---|---|
committer | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-04-14 05:02:38 +0000 |
commit | 248d296234dc7ce76294c677bf2ca5e76c2f50d1 (patch) | |
tree | 5a38d5a5eb4cd6075e10de1583fde289c144cc91 /wk5/pset/speller/dictionary.h | |
parent | ba93a5dca5f93fe7b5761c251037d4f1860f9a43 (diff) |
Sat, Apr 13, 2024, 10:02 PM -07:00
Diffstat (limited to 'wk5/pset/speller/dictionary.h')
-rw-r--r-- | wk5/pset/speller/dictionary.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/wk5/pset/speller/dictionary.h b/wk5/pset/speller/dictionary.h new file mode 100644 index 0000000..99e9904 --- /dev/null +++ b/wk5/pset/speller/dictionary.h @@ -0,0 +1,19 @@ +// Declares a dictionary's functionality + +#ifndef DICTIONARY_H +#define DICTIONARY_H + +#include <stdbool.h> + +// Maximum length for a word +// (e.g., pneumonoultramicroscopicsilicovolcanoconiosis) +#define LENGTH 45 + +// Prototypes +bool check(const char *word); +unsigned int hash(const char *word); +bool load(const char *dictionary); +unsigned int size(void); +bool unload(void); + +#endif // DICTIONARY_H |