Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
voidUpdate
35 days ago
|
parent
|
context
|
favorite
| on:
No way to parse integers in C (2022)
you could check if ret > ret * 10 + characters[i]-48, if so it has wrapped around and you return an error
thomashabets2
35 days ago
|
next
[–]
For unsigned that could work, but signed overflow is UB.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: