Skip to main content
+
Source Link
DinoCoderSaurus
  • 28.6k
  • 2
  • 12
  • 31

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.

Ah the thing that makes a string a string! lword in check is not technically a string, it is not properly terminated, so the result of strcasecmp is "unreliable".

Ahh, 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.

Source Link
DinoCoderSaurus
  • 28.6k
  • 2
  • 12
  • 31

Ah the thing that makes a string a string! lword in check is not technically a string, it is not properly terminated, so the result of strcasecmp is "unreliable".