Hi i have an android project which uses ndk
there is a c function atof() which is defined
static __inline__ double atof(const char *nptr)
{
return (strtod(nptr, NULL));
}
But somehow it always results in 0.0
error_printf("found %s parsed %d \n",nextArg, atof(nextArg));
found 44 parsed 0
any ideas why?
the parameter nextArg seems not to be the Problem
error_printf("found %s parsed %d \n","123", atof("123"));
found 123 parsed 0