summaryrefslogtreecommitdiff
path: root/lib/wcsstr.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2011-02-06 15:18:24 +0100
committerBruno Haible <bruno@clisp.org>2011-02-07 23:36:07 +0100
commit8e5e25f79c3ff689fc3a3aab0fe439064ef76d02 (patch)
tree9a5ed7a76917027d013c147a0878a7b58aaedd77 /lib/wcsstr.c
parentcaf727a459d4f451f29c2edf565d7d4eb12df6fc (diff)
downloadgnulib-8e5e25f79c3ff689fc3a3aab0fe439064ef76d02.tar.gz
New module 'wcsstr'.
* modules/wcsstr: New file. * lib/wchar.in.h (wcsstr): New declaration. * lib/wcsstr.c: New file. * lib/wcsstr-impl.h: New file, from libutf8 with modifications. * m4/wcsstr.m4: New file. * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared. (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR. * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR. * tests/test-wchar-c++.cc: Test the declaration of wcsstr. * doc/posix-functions/wcsstr.texi: Mention the new module.
Diffstat (limited to 'lib/wcsstr.c')
-rw-r--r--lib/wcsstr.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/wcsstr.c b/lib/wcsstr.c
new file mode 100644
index 0000000000..3a63447a36
--- /dev/null
+++ b/lib/wcsstr.c
@@ -0,0 +1,23 @@
+/* Locate a substring in a wide string.
+ 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 "wcsstr-impl.h"