I’m having some trouble with the ‘Single quotes’ stage of the shell challenge (in C). I am receiving build failed messages (screenshot below). However, all my local testing and attempts to reproduce the issue (I’ve tried multiple repeat submissions with different input text, all failing for the same reason):
(Remote test fail on left, successful local result on right):
Since strcmp expects a null-terminated string, using a buffer with only 1 byte allocated might cause unexpected behaviors. There needs to be enough space for both the character and the null terminator.
Hi @andy1li - thank you so much for your prompt reply! I will investigate further and make the necessary changes to see if that resolves things, thank you.