Skip to content
New issue

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

[🤗] - Check for truncation and out of range in input #5

Open
2 tasks
obfuscatedgenerated opened this issue Jun 16, 2023 · 1 comment
Open
2 tasks

Comments

@obfuscatedgenerated
Copy link
Owner

  • Modify input function to check for truncation
  • Use long to check range then cast back down to appropriate int
@obfuscatedgenerated obfuscatedgenerated changed the title Check for truncation and out of range in input [🤗] - Check for truncation and out of range in input Jun 16, 2023
@obfuscatedgenerated
Copy link
Owner Author

Consider replacing scanf with fgets and an isdigit check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant