diff options
author | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-04-29 05:18:47 +0000 |
---|---|---|
committer | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-04-29 05:18:47 +0000 |
commit | 9cf7c7f8e6adb924ae43d980ad5a14bd977e0948 (patch) | |
tree | 22483fe5ecc5db46f88c19cb2e63945aaf3a862f /wk5/pset/speller/dictionary.c | |
parent | 9092433cd215d514110e9c48370638da07decc81 (diff) |
Sun, Apr 28, 2024, 10:18 PM -07:00
Diffstat (limited to 'wk5/pset/speller/dictionary.c')
-rw-r--r-- | wk5/pset/speller/dictionary.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wk5/pset/speller/dictionary.c b/wk5/pset/speller/dictionary.c index cd10c35..7186765 100644 --- a/wk5/pset/speller/dictionary.c +++ b/wk5/pset/speller/dictionary.c @@ -31,11 +31,11 @@ bool check(const char *word) node *current = table[val]; // buffer string becasue word is const - char *buff + char *buff[strlen(word)]; // make word lowercase for (int i = 0; word[i] != '\0'; i++) { - word[i] = tolower(word[i]); + buff[i] = (tolower(word[i])); } // check all nodes in the bucket |