mescc: Mes C Library: vsscanf: Increase count for scanned float.

* lib/stdio/vsscanf.c (vsscanf): Increase count for scanned float.
This commit is contained in:
Jan Nieuwenhuizen 2019-01-06 10:01:47 +01:00
parent ff441b38e4
commit a520728889
No known key found for this signature in database
GPG Key ID: F3C1A0D9C1D65273
1 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,6 @@
/* -*-comment-start: "//";comment-end:""-*- /* -*-comment-start: "//";comment-end:""-*-
* GNU Mes --- Maxwell Equations of Software * GNU Mes --- Maxwell Equations of Software
* Copyright © 2017,2018 Jan (janneke) Nieuwenhuizen <janneke@gnu.org> * Copyright © 2017,2018,2019 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
* *
* This file is part of GNU Mes. * 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 *); float *f = va_arg (ap, float *);
*f = strtod (p, &p); *f = strtod (p, &p);
count++;
break;
} }
default: default:
{ {