嗨,我有一个使用 ndk 的 android 项目
有定义的 ac 函数 atof()
static __inline__ double atof(const char *nptr)
{
return (strtod(nptr, NULL));
}
但不知何故,它总是导致 0.0
error_printf("found %s parsed %d \n",nextArg, atof(nextArg));
found 44 parsed 0
任何想法为什么?
参数 nextArg 似乎不是问题
error_printf("found %s parsed %d \n","123", atof("123"));
found 123 parsed 0