Loading...
--- Libc/Libc-997.90.3/string/FreeBSD/strcpy.3
+++ Libc/Libc-825.26/string/FreeBSD/strcpy.3
@@ -44,24 +44,24 @@
.In string.h
.Ft char *
.Fo stpcpy
-.Fa "char *dst"
-.Fa "const char *src"
+.Fa "char *s1"
+.Fa "const char *s2"
.Fc
.Ft char *
.Fo stpncpy
-.Fa "char *restrict dst"
-.Fa "const char *restrict src"
+.Fa "char *restrict s1"
+.Fa "const char *restrict s2"
.Fa "size_t n"
.Fc
.Ft char *
.Fo strcpy
-.Fa "char *restrict dst"
-.Fa "const char *restrict src"
+.Fa "char *restrict s1"
+.Fa "const char *restrict s2"
.Fc
.Ft char *
.Fo strncpy
-.Fa "char *restrict dst"
-.Fa "const char *restrict src"
+.Fa "char *restrict s1"
+.Fa "const char *restrict s2"
.Fa "size_t n"
.Fc
.Sh DESCRIPTION
@@ -71,9 +71,9 @@
.Fn strcpy
functions
copy the string
-.Fa src
-to
-.Fa dst
+.Fa s2
+to
+.Fa s1
(including the terminating
.Ql \e0
character).
@@ -85,21 +85,21 @@
functions copy at most
.Fa n
characters from
-.Fa src
+.Fa s2
into
-.Fa dst .
+.Fa s1 .
If
-.Fa src
+.Fa s2
is less than
.Fa n
characters long,
the remainder of
-.Fa dst
+.Fa s1
is filled with
.Ql \e0
characters.
Otherwise,
-.Fa dst
+.Fa s1
is
.Em not
terminated.
@@ -113,7 +113,7 @@
.Fn strncpy
functions
return
-.Fa dst .
+.Fa s1 .
The
.Fn stpcpy
and
@@ -121,15 +121,15 @@
functions return a pointer to the terminating
.Ql \e0
character of
-.Fa dst .
+.Fa s1 .
If
.Fn stpncpy
does not terminate
-.Fa dst
+.Fa s1
with a
.Dv NUL
character, it instead returns a pointer to
-.Li dst[n]
+.Li s1[n]
(which does not necessarily refer to a valid memory location.)
.Sh EXAMPLES
The following sets