I have grown accustomed to strtod
and variants.
I am wondering why there is no strtoi
shipped with <stdlib.h>
.
Why is it that the integer type is left out of this party?
Specifically I am asking why there is not a version of atoi
with the safety features of strtod
?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…