我使用了给出的解决方案
在 C 中将字符串转换为 long long。我使用的是 Microsoft Visual Studio 2012。
编译时出现错误
LNK2019:函数 _main 中引用的未解析外部符号 _+atoll。
#include <stdio.h>
#include <stdlib.h>
int main(void) {
char s[30] = { "115" };
long long t = atoll(s);
printf("Value is: %lld\n", t);
return 0;
}