Hacker News new | past | comments | ask | show | jobs | submit login

That's true. If the range you're interested in is not the same as the range of long or long long, you'll have to check the range yourself before you go on and use the value. No ifdefs required. If you're not happy doing it yourself, I do recommend strtonum or any of the alternatives that allow you to explicitly specify the range you're interested in. I don't see the point in littering the standard library with functions having hard-coded range for every range you might be interested in.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: