OSDN Git Service

(split) LDP man-pages の original/ を v3.29 に更新。
[linuxjm/LDP_man-pages.git] / original / man3 / stpcpy.3
index f5f3740..4aaac4f 100644 (file)
 .\" Formatted or processed versions of this manual, if unaccompanied by
 .\" the source, must acknowledge the copyright and authors of this work.
 .\"
-.TH STPCPY 3  2009-02-04 "GNU" "Linux Programmer's Manual"
+.TH STPCPY 3  2010-09-15 "GNU" "Linux Programmer's Manual"
 .SH NAME
 stpcpy \- copy a string returning a pointer to its end
 .SH SYNOPSIS
 .nf
-.B #define _GNU_SOURCE
-.br
 .B #include <string.h>
 .sp
 .BI "char *stpcpy(char *" dest ", const char *" src );
 .fi
+.sp
+.in -4n
+Feature Test Macro Requirements for glibc (see
+.BR feature_test_macros (7)):
+.in
+.sp
+.BR stpcpy ():
+.PD 0
+.ad l
+.RS 4
+.TP 4
+Since glibc 2.10:
+_XOPEN_SOURCE\ >=\ 700 || _POSIX_C_SOURCE\ >=\ 200809L
+.TP
+Before glibc 2.10:
+_GNU_SOURCE
+.RE
+.ad
+.PD
 .SH DESCRIPTION
 The
 .BR stpcpy ()
@@ -48,7 +65,7 @@ returns a pointer to the \fBend\fP of the string
 rather than the beginning.
 .SH "CONFORMING TO"
 This function is not part of the C or POSIX.1 standards, and is
-not customary on Unix systems, but is not a GNU invention either.
+not customary on UNIX systems, but is not a GNU invention either.
 Perhaps it comes from MS-DOS.
 Nowadays, it is also present on the BSDs.
 .SH EXAMPLE
@@ -84,5 +101,6 @@ This function may overrun the buffer
 .BR memcpy (3),
 .BR memmove (3),
 .BR strcpy (3),
+.BR string (3),
 .BR wcpcpy (3),
 .BR feature_test_macros (7)