0

I would very much appreciate it of somebody could tell me what I did wrong or could help me get on the right track to the correct solution. My program overall works fine, except the end result isn't as expected.

I believe the issue lies in the check section and has something to do with the conversion to lowercase letters,thought I'm not entirely sure where.

As for the memory leaks I really don't understand what went wrong here.

Thank you for helping out!

When I run: ./speller texts/lalaland.txt

enter image description here enter image description here

edited code out to not spoil it for everybody

1 Answer 1

1

The code is correct, and does not lead to the problems you describe. It passes check50. Therefore, I would recommend editing your question to remove the code (to not tempt others).

Likely you forgot to make the programme after fixing the code, or forgot to save before calling make, or saved under a different file name.

2
  • Ah yes... I forgot to make speller too after I performed make dictionary and now it indeed words. Thank you so much! Commented Mar 4, 2019 at 11:03
  • Last year, this used to happen to people on "music" problem, and before that on "find", those introduced programmes with multiple .c files. Your make dictionary would work only if you had a main function in dictionary.c, otherwise the linker would complain. Maybe you have added one for testing purposes, so it compiles to an executable. The makefile should have speller listed as its first target, so make without specifying a target would build that one.
    – Blauelf
    Commented Mar 4, 2019 at 12:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .