summaryrefslogtreecommitdiffstats
path: root/lib/libc/string/wmemchr.3
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2005-08-13 05:54:33 +0000
committertjr <tjr@FreeBSD.org>2005-08-13 05:54:33 +0000
commitd0e833a8a7c2047711efdf3ea08308aea8847f02 (patch)
treef2a3d38e96b8bed43effcdd48821cd8bf59b0bd7 /lib/libc/string/wmemchr.3
parent4a5927242595d1576c993de352373f6a4fcd7b25 (diff)
downloadFreeBSD-src-d0e833a8a7c2047711efdf3ea08308aea8847f02.zip
FreeBSD-src-d0e833a8a7c2047711efdf3ea08308aea8847f02.tar.gz
Add an implementation of the semi-standard wcsdup() function, as found
on Microsoft and GNU systems.
Diffstat (limited to 'lib/libc/string/wmemchr.3')
-rw-r--r--lib/libc/string/wmemchr.39
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/libc/string/wmemchr.3 b/lib/libc/string/wmemchr.3
index a448064..a8b18cd 100644
--- a/lib/libc/string/wmemchr.3
+++ b/lib/libc/string/wmemchr.3
@@ -39,7 +39,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd December 22, 2000
+.Dd August 13, 2005
.Dt WMEMCHR 3
.Os
.Sh NAME
@@ -53,6 +53,7 @@
.Nm wcscmp ,
.Nm wcscpy ,
.Nm wcscspn ,
+.Nm wcsdup ,
.Nm wcslcat ,
.Nm wcslcpy ,
.Nm wcslen ,
@@ -88,6 +89,8 @@
.Fn wcscpy "wchar_t * restrict s1" "const wchar_t * restrict s2"
.Ft size_t
.Fn wcscspn "const wchar_t *s1" "const wchar_t *s2"
+.Ft wchar_t *
+.Fn wcsdup "const wchar_t *s"
.Ft size_t
.Fn wcslcat "wchar_t *s1" "const wchar_t *s2" "size_t n"
.Ft size_t
@@ -125,6 +128,7 @@ counterpart, such as
.Xr strcmp 3 ,
.Xr strcpy 3 ,
.Xr strcspn 3 ,
+.Xr strdup 3 ,
.Xr strlcat 3 ,
.Xr strlcpy 3 ,
.Xr strlen 3 ,
@@ -139,7 +143,8 @@ counterpart, such as
These functions conform to
.St -isoC-99 ,
with the exception of
-.Fn wcslcat
+.Fn wcsdup ,
+.Fn wcslcat ,
and
.Fn wcslcpy ,
which are extensions.
OpenPOWER on IntegriCloud