This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Sscanf "double" failed

Hi
Currently I want to get Double value from a Char array, but somehow when printing the Double variable, the value returns NULL.

double Val_double;
char testdou[] = "7777.00000";
sscanf(testdou,"%lf",&Val_double);
printf("+++++++++++ %lf ++++++++++\r\n",Val_double);

Please help me fix this problem!
I used nfr52832 and code Segger embedded studio 4.52.

Thank !!!!

Parents Reply Children
No Data
Related