[Solved] Cutting ‘ \0’ from strings [closed]
Your problem is evident in your debug output. getline does not strip the newline from the input, so for example you are searching for: “know\n” in “I do not know what to write\n” So your problem is not about stripping the \0 string terminator, but rather stripping the \n line-end. That can be achieved in … Read more