aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2024-03-21 08:38:05 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2024-03-24 05:12:39 +0000
commite87a6f8860463c71773c5a02f9824d940a27d2d7 (patch)
treedb9ae79c5d986d26c091d6820ed6941e19436a03
parent61d9b0cb38bb0b057929997c7eab689105bfdeb6 (diff)
downloadsrc-e87a6f8860463c71773c5a02f9824d940a27d2d7.tar.gz
src-e87a6f8860463c71773c5a02f9824d940a27d2d7.zip
wmemchr(3): fix prototypes for wcpcpy() and wcpncpy()
PR: 277855 (cherry picked from commit 69d5783ae81b74295118950d01b6dddb3e504a56)
-rw-r--r--lib/libc/string/wmemchr.36
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/string/wmemchr.3 b/lib/libc/string/wmemchr.3
index 4466a7e9b1b4..ebb0881dac16 100644
--- a/lib/libc/string/wmemchr.3
+++ b/lib/libc/string/wmemchr.3
@@ -33,7 +33,7 @@
.\"
.\" from: @(#)strcpy.3 8.1 (Berkeley) 6/4/93
.\"
-.Dd July 14, 2021
+.Dd March 21, 2024
.Dt WMEMCHR 3
.Os
.Sh NAME
@@ -82,9 +82,9 @@
.Ft wchar_t *
.Fn wmemset "wchar_t *s" "wchar_t c" "size_t n"
.Ft wchar_t *
-.Fn wcpcpy "wchar_t *s1" "wchar_t *s2"
+.Fn wcpcpy "wchar_t * restrict s1" "const wchar_t * restrict s2"
.Ft wchar_t *
-.Fn wcpncpy "wchar_t *s1" "wchar_t *s2" "size_t n"
+.Fn wcpncpy "wchar_t * restrict s1" "const wchar_t * restrict s2" "size_t n"
.Ft int
.Fn wcscasecmp "const wchar_t *s1" "const wchar_t *s2"
.Ft wchar_t *