summaryrefslogtreecommitdiff
path: root/lib/wcstok.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2011-02-06 15:25:58 +0100
committerBruno Haible <bruno@clisp.org>2011-02-07 23:36:08 +0100
commitcdddb1e1f27b899a9580d3ad289539c3c124d045 (patch)
treea96916c036086cdc4d66a3240105b3edf87e1de5 /lib/wcstok.c
parent8e5e25f79c3ff689fc3a3aab0fe439064ef76d02 (diff)
downloadgnulib-cdddb1e1f27b899a9580d3ad289539c3c124d045.tar.gz
New module 'wcstok'.
* modules/wcstok: New file. * lib/wchar.in.h (wcstok): New declaration. * lib/wcstok.c: New file. * lib/wcstok-impl.h: New file, from libutf8 with modifications. * m4/wcstok.m4: New file. * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared. (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK. * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK. * tests/test-wchar-c++.cc: Test the declaration of wcstok. * doc/posix-functions/wcstok.texi: Mention the new module.
Diffstat (limited to 'lib/wcstok.c')
-rw-r--r--lib/wcstok.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/wcstok.c b/lib/wcstok.c
new file mode 100644
index 0000000000..e61a3ff624
--- /dev/null
+++ b/lib/wcstok.c
@@ -0,0 +1,23 @@
+/* Split a wide string into tokens.
+ Copyright (C) 2011 Free Software Foundation, Inc.
+ Written by Bruno Haible <bruno@clisp.org>, 2011.
+
+ 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 3 of the License, 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 <http://www.gnu.org/licenses/>. */
+
+#include <config.h>
+
+/* Specification. */
+#include <wchar.h>
+
+#include "wcstok-impl.h"