Questions tagged «strtol»

7
atol()v / s。strtol()
atol()和strtol()有什么区别? 根据他们的手册页,它们似乎具有相同的效果以及匹配的参数: long atol(const char *nptr); long int strtol(const char *nptr, char **endptr, int base); 在一般情况下,当我不想使用base参数(我只有十进制数字)时,应该使用哪个函数?
67 c  strtol 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.