OSDN Git Service

Update README
[linuxjm/LDP_man-pages.git] / original / man3 / mempcpy.3
index bf18bb8..8e03908 100644 (file)
@@ -1,20 +1,24 @@
 .\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
+.\"
+.\" %%%LICENSE_START(GPL_NOVERSION_ONELINE)
 .\" Distributed under GPL
+.\" %%%LICENSE_END
+.\"
 .\" Heavily based on glibc infopages, copyright Free Software Foundation
 .\"
 .\" aeb, 2003, polished a little
-.TH MEMPCPY 3 2008-08-12 "GNU" "Linux Programmer's Manual"
+.TH MEMPCPY 3 2014-03-18 "GNU" "Linux Programmer's Manual"
 .SH NAME
 mempcpy, wmempcpy  \- copy memory area
 .SH SYNOPSIS
 .nf
-.B #define _GNU_SOURCE
+.BR "#define _GNU_SOURCE" "         /* See feature_test_macros(7) */"
 .br
 .B #include <string.h>
 .sp
 .BI "void *mempcpy(void *" dest ", const void *" src ", size_t " n );
 .sp
-.B #define _GNU_SOURCE
+.BR "#define _GNU_SOURCE" "         /* See feature_test_macros(7) */"
 .br
 .B #include <wchar.h>
 .sp
@@ -46,14 +50,23 @@ function is identical but takes
 type arguments and copies
 .I n
 wide characters.
-.SH "RETURN VALUE"
-\fIdest\fP + \fIn\fP.
+.SH RETURN VALUE
+.I dest
++
+.IR n .
 .SH VERSIONS
 .BR mempcpy ()
 first appeared in glibc in version 2.1.
-.SH "CONFORMING TO"
+.SH ATTRIBUTES
+.SS Multithreading (see pthreads(7))
+The
+.BR mempcpy ()
+and
+.BR wmempcpy ()
+functions are thread-safe.
+.SH CONFORMING TO
 This function is a GNU extension.
-.SH "EXAMPLE"
+.SH EXAMPLE
 .nf
 void *
 combine(void *o1, size_t s1, void *o2, size_t s2)
@@ -64,9 +77,17 @@ combine(void *o1, size_t s1, void *o2, size_t s2)
     return result;
 }
 .fi
-.SH "SEE ALSO"
+.SH SEE ALSO
 .BR memccpy (3),
 .BR memcpy (3),
 .BR memmove (3),
-.BR wmemcpy (3),
-.BR feature_test_macros (7)
+.BR wmemcpy (3)
+.SH COLOPHON
+This page is part of release 3.79 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/.