mescc: Mes C Library: Support GNU Awk: vsscanf: Support %f.
* lib/stdio/vsscanf.c (vsscanf): Support %f.
This commit is contained in:
parent
749248ac3a
commit
cd50beca3a
|
@ -66,6 +66,15 @@ vsscanf (char const *s, char const *template, va_list ap)
|
||||||
count++;
|
count++;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case 'e':
|
||||||
|
case 'f':
|
||||||
|
case 'g':
|
||||||
|
case 'E':
|
||||||
|
case 'G':
|
||||||
|
{
|
||||||
|
float *f = va_arg (ap, float *);
|
||||||
|
*f = strtod (p, &p);
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
eputs ("vsscanf: not supported: %:");
|
eputs ("vsscanf: not supported: %:");
|
||||||
|
|
Loading…
Reference in a new issue