mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
sscanf: Formats a, A, e, E, g, and G should be treated the same as f and F
This commit is contained in:
committed by
Gregory Nutt
parent
b77872d1d9
commit
983128e16a
+1
-1
Submodule configs updated: 21767e867c...beb85fb360
@@ -513,9 +513,11 @@ int vsscanf(FAR const char *buf, FAR const char *fmt, va_list ap)
|
||||
}
|
||||
}
|
||||
|
||||
/* Process %f: Floating point conversion */
|
||||
/* Process %a, %A, %f, %F, %e, %E, %g, and %G: Floating point
|
||||
* conversions
|
||||
*/
|
||||
|
||||
else if (*fmt == 'f' || *fmt == 'F')
|
||||
else if (strchr("aAfFeEgG", *fmt) != NULL)
|
||||
{
|
||||
#ifdef CONFIG_HAVE_DOUBLE
|
||||
FAR double_t *pd = NULL;
|
||||
|
||||
Reference in New Issue
Block a user