2 ms·
I thought this would be about the dangers of not checking for integer overflow. I struggled to come up with a method which, in C, safely converts a string to a
by teddyh 13y ago
I thought this would be about the dangers of not checking for integer overflow.
I struggled to come up with a method which, in C, safely converts a string to an integer type. I finally did it¹, but I've yet to see someone else use this method.
1) http://stackoverflow.com/a/542833/54435 http://stackoverflow.com/a/542833/54435