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:
@@ -159,7 +159,13 @@ literal:
|
|||||||
flags |= MAXINT;
|
flags |= MAXINT;
|
||||||
goto again;
|
goto again;
|
||||||
case 'L':
|
case 'L':
|
||||||
flags |= LONGDBL;
|
flags |=
|
||||||
|
(*fmt == 'd') ? LLONG :
|
||||||
|
(*fmt == 'i') ? LLONG :
|
||||||
|
(*fmt == 'o') ? LLONG :
|
||||||
|
(*fmt == 'u') ? LLONG :
|
||||||
|
(*fmt == 'x') ? LLONG :
|
||||||
|
LONGDBL;
|
||||||
goto again;
|
goto again;
|
||||||
case 'h':
|
case 'h':
|
||||||
if (*fmt == 'h') {
|
if (*fmt == 'h') {
|
||||||
|
|||||||
Reference in New Issue
Block a user