summaryrefslogtreecommitdiff
path: root/modules/wcpncpy
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2011-02-05 15:32:00 +0100
committerBruno Haible <bruno@clisp.org>2011-02-07 23:36:04 +0100
commit49549725af344962f45720d4d332d9cf0699ebcd (patch)
treee8bdb8368d12ef769826ce3d2d43f3c01179da70 /modules/wcpncpy
parentcde82ba3a73b7482132a950ac0d7cb0da67a2e1c (diff)
downloadgnulib-49549725af344962f45720d4d332d9cf0699ebcd.tar.gz
New module 'wcpncpy'.
* modules/wcpncpy: New file. * lib/wchar.in.h (wcpncpy): New declaration. * lib/wcpncpy.c: New file. * lib/wcpncpy-impl.h: New file, from libutf8 with modifications. * m4/wcpncpy.m4: New file. * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared. (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY. * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY. * tests/test-wchar-c++.cc: Test the declaration of wcpncpy. * doc/posix-functions/wcpncpy.texi: Mention the new module.
Diffstat (limited to 'modules/wcpncpy')
-rw-r--r--modules/wcpncpy25
1 files changed, 25 insertions, 0 deletions
diff --git a/modules/wcpncpy b/modules/wcpncpy
new file mode 100644
index 0000000000..2ba35a2579
--- /dev/null
+++ b/modules/wcpncpy
@@ -0,0 +1,25 @@
+Description:
+wcpncpy() function: copy a size-bounded wide string.
+
+Files:
+lib/wcpncpy.c
+lib/wcpncpy-impl.h
+m4/wcpncpy.m4
+
+Depends-on:
+wchar
+
+configure.ac:
+gl_FUNC_WCPNCPY
+gl_WCHAR_MODULE_INDICATOR([wcpncpy])
+
+Makefile.am:
+
+Include:
+<wchar.h>
+
+License:
+LGPL
+
+Maintainer:
+Bruno Haible