OSDN Git Service

LDP: Update original to LDP v3.68
[linuxjm/LDP_man-pages.git] / original / man3 / stpcpy.3
index 83260df..e9aea47 100644 (file)
@@ -22,7 +22,7 @@
 .\" the source, must acknowledge the copyright and authors of this work.
 .\" %%%LICENSE_END
 .\"
-.TH STPCPY 3  2012-03-15 "GNU" "Linux Programmer's Manual"
+.TH STPCPY 3  2014-05-10 "GNU" "Linux Programmer's Manual"
 .SH NAME
 stpcpy \- copy a string returning a pointer to its end
 .SH SYNOPSIS
@@ -68,12 +68,19 @@ of the string
 .I dest
 (that is, the address of the terminating null byte)
 rather than the beginning.
+.SH ATTRIBUTES
+.SS Multithreading (see pthreads(7))
+The
+.BR stpcpy ()
+function is thread-safe.
 .SH CONFORMING TO
 This function was added to POSIX.1-2008.
 Before that, it was not part of
-the C or POSIX.1 standards, nor customary on UNIX systems, but was not a
-GNU invention either.
-Perhaps it came from MS-DOS.
+the C or POSIX.1 standards, nor customary on UNIX systems.
+It first appeared at least as early as 1986,
+in the Lattice C AmigaDOS compiler,
+then in the GNU fileutils and GNU textutils in 1989,
+and in the GNU C library by 1992.
 It is also present on the BSDs.
 .SH BUGS
 This function may overrun the buffer
@@ -88,7 +95,6 @@ and
 to produce
 .BR foobar ,
 which it then prints.
-.in +4n
 .nf
 
 #define _GNU_SOURCE
@@ -106,7 +112,6 @@ main(void)
     printf("%s\\n", buffer);
 }
 .fi
-.in
 .SH SEE ALSO
 .BR bcopy (3),
 .BR memccpy (3),
@@ -116,3 +121,12 @@ main(void)
 .BR strcpy (3),
 .BR string (3),
 .BR wcpcpy (3)
+.SH COLOPHON
+This page is part of release 3.68 of the Linux
+.I man-pages
+project.
+A description of the project,
+information about reporting bugs,
+and the latest version of this page,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.