2 votes
Accepted

Pset5: strcasecmp doesn't return 0 when given the same string input

Perhaps there's a slight oversight in your code. Look at the following: lc_word[len + 1] = '\0'; Now, say that the word is "Cat". Length is 3 so len = 3. Remember that arrays start at 0,...
user avatar
  • 63.1k
1 vote
Accepted

The strcsecmp() function is not working as expected

Does your hash function return the same bucket for the words "apple" and "Apple"? If not, then your issue isn't strcasecmp, but the fact that you aren't looking in the right ...
user avatar
  • 18.3k

Only top scored, non community-wiki answers of a minimum length are eligible