summaryrefslogtreecommitdiff
path: root/scanf
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2002-11-02 00:05:23 +0100
committerKevin Ryde <user42@zip.com.au>2002-11-02 00:05:23 +0100
commite8ecdf1f6efee35132cd3739b60856ef167c1be6 (patch)
treeb05c7b460a14bbc5c4dc214c4f56ff41c7b0394d /scanf
parenta41034c253e1c5b9f1a1f806d7e62161619ecd1e (diff)
downloadgmp-e8ecdf1f6efee35132cd3739b60856ef167c1be6.tar.gz
* scanf/doscan.c: Don't use isascii, rely on C99 ctype.h.
Diffstat (limited to 'scanf')
-rw-r--r--scanf/doscan.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/scanf/doscan.c b/scanf/doscan.c
index 9c36bf429..51a0e64d9 100644
--- a/scanf/doscan.c
+++ b/scanf/doscan.c
@@ -214,12 +214,12 @@ gmpscan (const struct gmp_doscan_funs_t *funs, void *data,
{
if (base == 16)
{
- if (! (isascii (c) && isxdigit (c)))
+ if (! isxdigit (c))
break;
}
else
{
- if (! (isascii (c) && isdigit (c)))
+ if (! isdigit (c))
break;
if (base == 8 && (c == '8' || c == '9'))
break;
@@ -367,7 +367,7 @@ skip_white (const struct gmp_doscan_funs_t *funs, void *data)
c = (funs->get) (data);
ret++;
}
- while (isascii (c) && isspace (c));
+ while (isspace (c));
(funs->unget) (c, data);
ret--;
@@ -422,7 +422,7 @@ __gmp_doscan (const struct gmp_doscan_funs_t *funs, void *data,
if (fchar == '\0')
break;
- if (isascii (fchar) && isspace (fchar))
+ if (isspace (fchar))
{
chars += skip_white (funs, data);
continue;
@@ -656,7 +656,7 @@ __gmp_doscan (const struct gmp_doscan_funs_t *funs, void *data,
do {
param.width = param.width * 10 + (fchar-'0');
fchar = *fmt++;
- } while (isascii (fchar) && isdigit (fchar));
+ } while (isdigit (fchar));
fmt--; /* unget the non-digit */
break;