summaryrefslogtreecommitdiff
path: root/lib/c32iscntrl.c
diff options
context:
space:
mode:
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"