mescc: Mes C Library: Support GNU Awk: vsscanf: Support %f.

* lib/stdio/vsscanf.c (vsscanf): Support %f.
This commit is contained in:
Jan Nieuwenhuizen 2019-01-03 10:48:39 +01:00
parent 288a25893c
commit 85c108076a
No known key found for this signature in database
GPG Key ID: F3C1A0D9C1D65273
1 changed files with 9 additions and 0 deletions

View File

@ -62,6 +62,15 @@ vsscanf (char const *s, char const *template, va_list ap)
count++;
break;
}
case 'e':
case 'f':
case 'g':
case 'E':
case 'G':
{
float *f = va_arg (ap, float*);
*f = strtod (p, &p);
}
default:
{
eputs ("vsscanf: not supported: %:");