From 248d296234dc7ce76294c677bf2ca5e76c2f50d1 Mon Sep 17 00:00:00 2001 From: Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> Date: Sun, 14 Apr 2024 05:02:38 +0000 Subject: Sat, Apr 13, 2024, 10:02 PM -07:00 --- wk5/pset/speller/dictionary.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 wk5/pset/speller/dictionary.h (limited to 'wk5/pset/speller/dictionary.h') 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 + +// 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 -- cgit v1.2.3