C语言 atoi() 来自十六进制表示字符串
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/20654424/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-02 10:31:18 来源:igfitidea点击:
atoi() from hex representation string
提问by vico
Need to make int from hex representation string like "0xFA"or better "FA". Need something like atoi("FA"). Is there are any standard solutions for that?
需要从十六进制表示字符串中生成 int ,例如"0xFA"或更好"FA"。需要类似的东西atoi("FA")。有没有标准的解决方案?

