vfscanf: Add support for L type modifier for long long

scanf()'s man page suggests support for %Ld, (and ioux).
Implement this so that 3rd party code will work correctly.

Change-Id: Idce9d266071cb688ca71429395a2d9edf6813595
This commit is contained in:
Chris Fries 2011-05-04 09:54:06 -05:00
parent e274a9fac0
commit 712e4f81e0

View File

@ -159,7 +159,13 @@ literal:
flags |= MAXINT;
goto again;
case 'L':
flags |= LONGDBL;
flags |=
(*fmt == 'd') ? LLONG :
(*fmt == 'i') ? LLONG :
(*fmt == 'o') ? LLONG :
(*fmt == 'u') ? LLONG :
(*fmt == 'x') ? LLONG :
LONGDBL;
goto again;
case 'h':
if (*fmt == 'h') {