.\" 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 ()
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
.BR memcpy (3),
.BR memmove (3),
.BR strcpy (3),
+.BR string (3),
.BR wcpcpy (3),
.BR feature_test_macros (7)