Skip to content
Snippets Groups Projects
Commit 983128e1 authored by Stefan Kolb's avatar Stefan Kolb Committed by Gregory Nutt
Browse files

sscanf: Formats a, A, e, E, g, and G should be treated the same as f and F

parent b77872d1
No related branches found
No related tags found
No related merge requests found
configs @ beb85fb3
Subproject commit 21767e867c11ee5de08be734f4f8dafb90b82243
Subproject commit beb85fb3609aa8fccd9bd5f7e96e28d7d5a86763
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment