From 40b0acadedaf19025a7fa70888e7ba22689da767 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 12 Dec 2014 07:54:37 -0600 Subject: [PATCH] sscanf should also support %F --- libc/stdio/lib_sscanf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libc/stdio/lib_sscanf.c b/libc/stdio/lib_sscanf.c index adad401352..c9375d35d6 100644 --- a/libc/stdio/lib_sscanf.c +++ b/libc/stdio/lib_sscanf.c @@ -515,7 +515,7 @@ int vsscanf(FAR const char *buf, FAR const char *fmt, va_list ap) /* Process %f: Floating point conversion */ - else if (*fmt == 'f') + else if (*fmt == 'f' || *fmt == 'F') { #ifdef CONFIG_HAVE_DOUBLE FAR double_t *pd = NULL;