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-08-01 11:01:47 +02:00
parent de197a48f5
commit f097a9d270
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

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:
{ {