summaryrefslogtreecommitdiff
path: root/src/ctype/iswgraph.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ctype/iswgraph.c')
-rw-r--r--src/ctype/iswgraph.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ctype/iswgraph.c b/src/ctype/iswgraph.c
new file mode 100644
index 00000000..fdc97853
--- /dev/null
+++ b/src/ctype/iswgraph.c
@@ -0,0 +1,7 @@
+#include <wctype.h>
+
+int iswgraph(wint_t wc)
+{
+ /* ISO C defines this function as: */
+ return !iswspace(wc) && iswprint(wc);
+}