summaryrefslogtreecommitdiff
path: root/lib/c32iscntrl.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2020-01-25 23:50:35 +0100
committerBruno Haible <bruno@clisp.org>2020-01-25 23:50:35 +0100
commit3eeecb071856c21573b1faf0dff1a5e76a7ffa55 (patch)
treea5cbce8d6b350d72bd3f870da2473fa2c366acad /lib/c32iscntrl.c
parent7a4592bdc5ac77bcf6d041da144ffbb2ab0a60e9 (diff)
downloadgnulib-3eeecb071856c21573b1faf0dff1a5e76a7ffa55.tar.gz
c32iscntrl: New module.
* lib/c32iscntrl.c: New file. * modules/c32iscntrl: New file. * doc/posix-functions/iswcntrl.texi: Mention the new module.
Diffstat (limited to 'lib/c32iscntrl.c')
-rw-r--r--lib/c32iscntrl.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/c32iscntrl.c b/lib/c32iscntrl.c
new file mode 100644
index 0000000000..cad20913a5
--- /dev/null
+++ b/lib/c32iscntrl.c
@@ -0,0 +1,25 @@
+/* Test 32-bit wide character for being a control character.
+ Copyright (C) 2020 Free Software Foundation, Inc.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2, or (at your option)
+ any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, see <https://www.gnu.org/licenses/>. */
+
+#include <config.h>
+
+/* Specification. */
+#include <uchar.h>
+
+#define FUNC c32iscntrl
+#define WCHAR_FUNC iswcntrl
+#define UCS_FUNC uc_is_cntrl
+#include "c32is-impl.h"