xiaoxiang781216 commented on code in PR #7724: URL: https://github.com/apache/nuttx/pull/7724#discussion_r1035615217
########## libs/libc/stdlib/lib_strtof.c: ########## @@ -142,16 +174,24 @@ float strtof(FAR const char *str, FAR char **endptr) break; } + p10 = 10.0f; number = 0.0F; exponent = 0; num_digits = 0; num_decimals = 0; + /* Process optional 0x prefix */ + + if (*p == '0' && tolower(*(p + 1)) == 'x') + { + p += 2; Review Comment: remove the extra space -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org