Skip to content

Conversation

@N-R-K
Copy link

@N-R-K N-R-K commented Aug 20, 2023

No description provided.

@N-R-K
Copy link
Author

N-R-K commented Aug 20, 2023

Also, using atoi is a bit poor since it cannot do proper error detection. So something invalid will just silently get converted to 0.

I'd recommend strtol with proper error checks.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant