]> git.ipfire.org Git - thirdparty/man-pages.git/blobdiff - man3/stpcpy.3
fanotify_init.2, fanotify.7: Document FAN_REPORT_TID
[thirdparty/man-pages.git] / man3 / stpcpy.3
index f15d77ed70909ee1f383bf5085e6e96e800ba75a..e611a84fd58bb04c10bebb191f679f45fdec9570 100644 (file)
 .\" the source, must acknowledge the copyright and authors of this work.
 .\" %%%LICENSE_END
 .\"
-.TH STPCPY 3  2014-05-10 "GNU" "Linux Programmer's Manual"
+.TH STPCPY 3  2016-03-15 "GNU" "Linux Programmer's Manual"
 .SH NAME
 stpcpy \- copy a string returning a pointer to its end
 .SH SYNOPSIS
 .nf
 .B #include <string.h>
-.sp
+.PP
 .BI "char *stpcpy(char *" dest ", const char *" src );
 .fi
-.sp
+.PP
 .in -4n
 Feature Test Macro Requirements for glibc (see
 .BR feature_test_macros (7)):
 .in
-.sp
+.PP
 .BR stpcpy ():
 .PD 0
 .ad l
 .RS 4
 .TP 4
 Since glibc 2.10:
-_XOPEN_SOURCE\ >=\ 700 || _POSIX_C_SOURCE\ >=\ 200809L
+_POSIX_C_SOURCE\ >=\ 200809L
 .TP
 Before glibc 2.10:
 _GNU_SOURCE
@@ -69,10 +69,17 @@ of the string
 (that is, the address of the terminating null byte)
 rather than the beginning.
 .SH ATTRIBUTES
-.SS Multithreading (see pthreads(7))
-The
+For an explanation of the terms used in this section, see
+.BR attributes (7).
+.TS
+allbox;
+lb lb lb
+l l l.
+Interface      Attribute       Value
+T{
 .BR stpcpy ()
-function is thread-safe.
+T}     Thread safety   MT-Safe
+.TE
 .SH CONFORMING TO
 This function was added to POSIX.1-2008.
 Before that, it was not part of
@@ -95,8 +102,8 @@ and
 to produce
 .BR foobar ,
 which it then prints.
-.nf
-
+.PP
+.EX
 #define _GNU_SOURCE
 #include <string.h>
 #include <stdio.h>
@@ -111,7 +118,7 @@ main(void)
     to = stpcpy(to, "bar");
     printf("%s\\n", buffer);
 }
-.fi
+.EE
 .SH SEE ALSO
 .BR bcopy (3),
 .BR memccpy (3),