summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/ctype.h9
-rw-r--r--libc/misc/ctype/ctype.c4
2 files changed, 11 insertions, 2 deletions
diff --git a/include/ctype.h b/include/ctype.h
index a2e457806..e45280f73 100644
--- a/include/ctype.h
+++ b/include/ctype.h
@@ -345,6 +345,15 @@ libc_hidden_proto(isxdigit_l)
__exctype_l (isblank_l);
libc_hidden_proto(isblank_l)
+#if defined __USE_SVID || defined __USE_MISC || defined __USE_XOPEN
+
+/* Return nonzero iff C is in the ASCII set
+ (i.e., is no more than 7 bits wide). */
+extern int isascii_l (int __c) __THROW;
+libc_hidden_proto(isascii_l)
+
+#endif
+
/* Return the lowercase version of C in locale L. */
extern int __tolower_l (int __c, __locale_t __l) __THROW;
extern int tolower_l (int __c, __locale_t __l) __THROW;
diff --git a/libc/misc/ctype/ctype.c b/libc/misc/ctype/ctype.c
index 1ae2f8de5..43f95429a 100644
--- a/libc/misc/ctype/ctype.c
+++ b/libc/misc/ctype/ctype.c
@@ -382,14 +382,14 @@ int __XL_NPP(isascii)(int c)
#else /* __UCLIBC_HAS_CTYPE_TABLES__ */
-/* libc_hidden_proto(isascii) */
int isascii(int c)
{
return __isascii(c); /* locale-independent */
}
-libc_hidden_def(isascii)
#endif /* __UCLIBC_HAS_CTYPE_TABLES__ */
+CTYPE_DEF(ascii)
+
#endif
/**********************************************************************/