Why is there no strtoi in stdlib.h?

后端 未结 6 2012
深忆病人
深忆病人 2020-11-27 16:34

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 is left out of this part

6条回答
  •  臣服心动
    2020-11-27 16:53

    Don't overlook the SEE ALSO section of your manpages :)

    SEE ALSO
           atof(3), atoi(3), atol(3), strtol(3), strtoul(3)
    

    You're looking for atoi(3). :)

提交回复
热议问题