summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1994-10-10 09:25:42 +0000
committerRoland McGrath <roland@gnu.org>1994-10-10 09:25:42 +0000
commit7f925246e7ae530c9ab7de59ee3a64607918b6a5 (patch)
treee81e22f1e5b70f0357cebd8015a858b7ef7bba50
parent0bf82c4fe50fa61f091975b997c42abd73fe8dbc (diff)
Grok %q modifier like %ll.
-rw-r--r--stdio/vfscanf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/stdio/vfscanf.c b/stdio/vfscanf.c
index 6c450a9c5a..ec5e406833 100644
--- a/stdio/vfscanf.c
+++ b/stdio/vfscanf.c
@@ -162,7 +162,7 @@ DEFUN(__vfscanf, (s, format, arg),
/* Check for type modifiers. */
is_short = is_long = is_long_double = malloc_string = 0;
- while (*f == 'h' || *f == 'l' || *f == 'L' || *f == 'a')
+ while (*f == 'h' || *f == 'l' || *f == 'L' || *f == 'a' || *f == 'q')
switch (*f++)
{
case 'h':
@@ -177,6 +177,7 @@ DEFUN(__vfscanf, (s, format, arg),
/* int's are long int's. */
is_long = 1;
break;
+ case 'q':
case 'L':
/* double's are long double's, and int's are long long int's. */
is_long_double = 1;