summaryrefslogtreecommitdiffstats
path: root/lib/libc/string/strcpy.3
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2002-10-03 19:39:20 +0000
committerobrien <obrien@FreeBSD.org>2002-10-03 19:39:20 +0000
commitae09b5969d9b0b71b7ea2ca9782aaffa85ad1935 (patch)
treedd6f27de20a59c8b3a0f1272e9928138faa9ce0f /lib/libc/string/strcpy.3
parentb8f13ad64366f383744def751f79e415c51f7513 (diff)
downloadFreeBSD-src-ae09b5969d9b0b71b7ea2ca9782aaffa85ad1935.zip
FreeBSD-src-ae09b5969d9b0b71b7ea2ca9782aaffa85ad1935.tar.gz
Add stpcpy(3).
Diffstat (limited to 'lib/libc/string/strcpy.3')
-rw-r--r--lib/libc/string/strcpy.320
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/libc/string/strcpy.3 b/lib/libc/string/strcpy.3
index 9f4410d..5343cdf 100644
--- a/lib/libc/string/strcpy.3
+++ b/lib/libc/string/strcpy.3
@@ -47,11 +47,14 @@
.Sh SYNOPSIS
.In string.h
.Ft char *
+.Fn stpcpy "char *dst" "const char *src"
+.Ft char *
.Fn strcpy "char * restrict dst" "const char * restrict src"
.Ft char *
.Fn strncpy "char * restrict dst" "const char * restrict src" "size_t len"
.Sh DESCRIPTION
The
+.Fn stpcpy ,
.Fn strcpy
function
copies the string
@@ -89,6 +92,12 @@ and
functions
return
.Fa dst .
+The
+.Fn stpcpy
+function returns a pointer to the terminating
+.Ql \e0
+character of
+.Fa dst .
.Sh EXAMPLES
The following sets
.Va chararray
@@ -178,3 +187,14 @@ and
functions
conform to
.St -isoC .
+The
+.Fn stpcpy
+function is an MS-DOS and GNUism.
+.Fn stpcpy
+conforms to no standard.
+.Sh HISTORY
+The
+.Fn stpcpy
+function first appeared in
+.Fx 4.4 ,
+comming from 1998-ventage Linux.
OpenPOWER on IntegriCloud