小编Chr*_*eur的帖子

对于uint32_t和其他stdint类型,atoi或strtoul的等价物是什么?

我正在寻找将字符串转换为stdint.h整数的标准函数

int i = atoi("123");
unsigned long ul = strtoul("123", NULL, 10);
uint32_t n = mysteryfunction("123"); // <-- ???
Run Code Online (Sandbox Code Playgroud)

c c99 type-conversion stdint

6
推荐指数
1
解决办法
6385
查看次数

标签 统计

c ×1

c99 ×1

stdint ×1

type-conversion ×1