Timeline for char* to integer implementation (atoi with saturation to INT_MIN or INT_MAX on overflow)
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 24, 2023 at 2:51 | history | edited | chux | CC BY-SA 4.0 |
added 2 characters in body
|
Nov 24, 2023 at 2:50 | comment | added | chux | @aliheym Yes, after the check, the cast does not change the value. | |
Nov 24, 2023 at 1:48 | comment | added | aliheym |
Thanks, I'm not very familiar with the standard library yet, but I found some new interesting stuff. Btw, it's a very clever approach to check overflow using long. When we have checked the bounds (INT_MAX and INT_MIN ), is the (int) number considered safe?
|
|
Nov 23, 2023 at 4:08 | history | edited | chux | CC BY-SA 4.0 |
added 85 characters in body
|
Nov 23, 2023 at 4:00 | history | edited | chux | CC BY-SA 4.0 |
added 14 characters in body
|
S Nov 23, 2023 at 3:54 | history | answered | chux | CC BY-SA 4.0 | |
S Nov 23, 2023 at 3:54 | history | made wiki | Post Made Community Wiki by chux |