In speller.c we call the function to load the dictionary into memory:
bool loaded = load(dictionary);
where the declaration of the function is:
bool load(const char* dictionary);
My load( ) function successfully loads the dictionary to memory but the return type is a boolean. I can't return the pointer to the place where my dictionary is loaded, so it is lost and I can't use it.
Also the check( ) function is used as:
bool misspelled = !check(word);
where the declaration is:
bool check(const char* word);
If the functions doesn't have an input to enter the location of the dictionary, how can I compare two words?