diff options
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 |