AhAhh, the thing that makes a string a string! lword
in check is not technically a string, as it is not properly terminated, so the result of strcasecmp
is "unreliable".
You could create a text file to match the check50 test and run it with the small dictionary. But be warned, the results may be different than check50, it may even give the correct result. It depends on what is in memory after the last character of each word.