From f097a9d270bce9d9e3dff5c344b83f966bed0f6d Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Thu, 1 Aug 2019 11:01:47 +0200 Subject: [PATCH] mescc: Mes C Library: vsscanf: Increase count for scanned float. * lib/stdio/vsscanf.c (vsscanf): Increase count for scanned float. --- lib/stdio/vsscanf.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/stdio/vsscanf.c b/lib/stdio/vsscanf.c index 102ad3a0..4573bc01 100644 --- a/lib/stdio/vsscanf.c +++ b/lib/stdio/vsscanf.c @@ -1,6 +1,6 @@ /* -*-comment-start: "//";comment-end:""-*- * GNU Mes --- Maxwell Equations of Software - * Copyright © 2017,2018 Jan (janneke) Nieuwenhuizen + * Copyright © 2017,2018,2019 Jan (janneke) Nieuwenhuizen * * This file is part of GNU Mes. * @@ -74,6 +74,8 @@ vsscanf (char const *s, char const *template, va_list ap) { float *f = va_arg (ap, float *); *f = strtod (p, &p); + count++; + break; } default: {