Guest_imported
New member
- Jan 1, 1970
- 0
I need to determine whether a character input is a carraige return or new line. I have tried comparing the input to '\r' and '\n', but that's not working. I used strcmp, strstr, and strchr, but none give me the right results. WHile typing in the input, I hit 'enter' to accomplish the return and newline. Is that wrong? Any help is greatly appreciated. Thanks!!