summaryrefslogtreecommitdiff
path: root/src/wctype/iswblank.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wctype/iswblank.c')
-rw-r--r--src/wctype/iswblank.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/wctype/iswblank.c b/src/wctype/iswblank.c
new file mode 100644
index 00000000..b6a44d3c
--- /dev/null
+++ b/src/wctype/iswblank.c
@@ -0,0 +1,27 @@
+#include <wctype.h>
+#include "nonstd/assert.h"
+
+/** test whether a wide character is blank **/
+int iswblank(wint_t wc)
+{
+ ASSERT_REPRESENTABLE(wc, WCHAR_MIN, WCHAR_MAX, "wchar_t", WEOF);
+
+ wctype_t blank = wctype("blank");
+ return iswctype(wc, blank);
+}
+
+/***
+The fn(iswblank) functions tests whether a wide character is a of the character
+class cclass(blank) in the current locale.
+***/
+
+/* RETURN(NZ): arg(wc) is a blank character */
+/* RETURN(0): arg(wc) is not a blank character */
+
+/* UNSPECIFIED: - */
+/* IMPLEMENTATION: - */
+/* LOCALE: LC_CTYPE */
+
+/*
+STDC(199901)
+*/