nuttx/libs/libc/stdlib
flyingfish89 fa59db8cea Add Hexadecimal parsing for strtof
solve:
  almost the Hexadecimal string string->float
such as:
  code:float num;
       const char *s= "0x123p32lala";
       char *p;
       num=strtof(s,&p);
       printf("num is %f\n",num);
       printf("str is %s\n",p);
  output:num is 1249835483136.000000
         str is lala

but if the input number is much big;
like:
  code:const char *s2= "0x999999p100";
       num=strtof(s2,&p);
       printf("num is %f\n",num);
       printf("str is %s\n",p);
  corrent : num is 12760587998944832242938906880669384704.000000
  real:     num is 12760587998944800000000000000000000000.000000
it didn't have enough precision
2022-11-30 19:03:07 +08:00
..
Kconfig libc: Implement exit, atexit, on_exit and cxa_exit on the user side 2022-05-25 15:28:43 +08:00
lib_abort.c
lib_abs.c
lib_aligned_alloc.c
lib_atexit.c lib/atexit: correct return value of exitfunc lock 2022-11-07 18:14:30 +08:00
lib_atof.c
lib_atoi.c
lib_atol.c
lib_atoll.c
lib_bsearch.c
lib_checkbase.c
lib_cxa_atexit.c libc: Implement exit, atexit, on_exit and cxa_exit on the user side 2022-05-25 15:28:43 +08:00
lib_div.c
lib_exit.c libc: Implement exit, atexit, on_exit and cxa_exit on the user side 2022-05-25 15:28:43 +08:00
lib_getprogname.c
lib_itoa.c
lib_labs.c
lib_ldiv.c
lib_llabs.c
lib_lldiv.c
lib_mblen.c libc/wchar: remove unnecessary config 2022-07-27 00:36:49 +08:00
lib_mbstowcs.c libc/wchar: remove unnecessary config 2022-07-27 00:36:49 +08:00
lib_mbtowc.c libc/wchar: support wchar 2022-07-27 00:36:49 +08:00
lib_mkdtemp.c
lib_mkstemp.c
lib_mktemp.c Replace nxsem API when used as a lock with nxmutex API 2022-10-17 15:59:46 +09:00
lib_onexit.c libc: Implement exit, atexit, on_exit and cxa_exit on the user side 2022-05-25 15:28:43 +08:00
lib_openpty.c libc: posix_openpty should use the absolute path("dev/ptmx") 2022-02-14 08:43:05 +09:00
lib_posix_memalign.c
lib_ptsname.c
lib_ptsnamer.c
lib_qsort.c
lib_rand.c
lib_realpath.c libc: Don't duplicate string in chdir and lib_restoredir 2022-04-18 10:36:36 +03:00
lib_srand.c
lib_strtod.c Add Hexadecimal parsing for strtof 2022-11-30 19:03:07 +08:00
lib_strtof.c Add Hexadecimal parsing for strtof 2022-11-30 19:03:07 +08:00
lib_strtol.c
lib_strtold.c libs: fix visual studio Compiler Error C2124 2022-09-26 04:40:09 +08:00
lib_strtoll.c
lib_strtoul.c
lib_strtoull.c
lib_unlockpt.c
lib_valloc.c
lib_wcstombs.c libc/wchar: remove unnecessary config 2022-07-27 00:36:49 +08:00
lib_wctomb.c libc/wchar: support wchar 2022-07-27 00:36:49 +08:00
Make.defs libc/wchar: remove unnecessary config 2022-07-27 00:36:49 +08:00