What is atoi equivalent for 64bit integer(uint64_t) in C that works on both Unix and Windows?

前端 未结 7 1525
失恋的感觉
失恋的感觉 2021-02-02 08:02

I\'m trying to convert 64bit integer string to integer, but I don\'t know which one to use.

7条回答
  •  滥情空心
    2021-02-02 08:39

    Try strtoull(), or strtoul(). The former is only in C99 and C++11, but it's usually widely available.

提交回复
热议问题