X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fctype%2Fiswalnum.c;h=35dbe02cf3cb3993e701c3acf8f950db101a890c;hb=1701e4f3d46b14c4c4be8a46e64f8eaf15a5c061;hp=d3b5667470e91e57d9ea022b8cacf86b76426c53;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01;p=musl diff --git a/src/ctype/iswalnum.c b/src/ctype/iswalnum.c index d3b56674..35dbe02c 100644 --- a/src/ctype/iswalnum.c +++ b/src/ctype/iswalnum.c @@ -1,9 +1,7 @@ #include #include -#undef iswalnum - int iswalnum(wint_t wc) { - return (unsigned)wc-'0' < 10 || iswalpha(wc); + return iswdigit(wc) || iswalpha(wc); }