We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[src/main.c:106]: (warning) Storing getchar() return value in char variable and then comparing with EOF.
char c = getchar(); if (c == '\n' || c == EOF)
Basic C knowledge, but the return value from getchar should always be stored in an int, not char.
The text was updated successfully, but these errors were encountered:
Good catch! A pull request is welcome.
Sorry, something went wrong.
No branches or pull requests
[src/main.c:106]: (warning) Storing getchar() return value in char variable and then comparing with EOF.
Basic C knowledge, but the return value from getchar should always be
stored in an int, not char.
The text was updated successfully, but these errors were encountered: