Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: 将 char 数组转换为单个 int?
如何将 char 数组转换为 uintmax_t?char 数组包含 uintMax_t 值,但采用字符串格式。谢谢你。
You need to use atoi or atol .
atoi
atol