summaryrefslogtreecommitdiff
path: root/lib/wcscpy.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2011-02-05 14:23:31 +0100
committerBruno Haible <bruno@clisp.org>2011-02-07 23:36:03 +0100
commitcca5dbfe86a210115de38c08749f6c4c2f07d85e (patch)
treee03a2bd76af90bf1f0112062444ff9ac978a28ea /lib/wcscpy.c
parent28fef9da8362f44f2afa96429f23977080f4f4b9 (diff)
downloadgnulib-cca5dbfe86a210115de38c08749f6c4c2f07d85e.tar.gz
New module 'wcscpy'.
* modules/wcscpy: New file. * lib/wchar.in.h (wcscpy): New declaration. * lib/wcscpy.c: New file. * lib/wcscpy-impl.h: New file, from libutf8 with modifications. * m4/wcscpy.m4: New file. * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared. (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY. * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY. * tests/test-wchar-c++.cc: Test the declaration of wcscpy. * doc/posix-functions/wcscpy.texi: Mention the new module.
Diffstat (limited to 'lib/wcscpy.c')
-rw-r--r--lib/wcscpy.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/wcscpy.c b/lib/wcscpy.c
new file mode 100644
index 0000000000..136a493338
--- /dev/null
+++ b/lib/wcscpy.c
@@ -0,0 +1,23 @@
+/* Copy 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 "wcscpy-impl.h"