SysTutorials

Man Pages › Section 3

stpcpy(3)

stpcpy – copy a string returning a pointer to its end

Synopsis

#include <string.h>

char *stpcpy(char *dest, const char *src);

Feature Test Macro Requirements for glibc (see feature_test_macros(7)): stpcpy():

Since glibc 2.10:

_POSIX_C_SOURCE >= 200809L

Before glibc 2.10:

_GNU_SOURCE

Description

The stpcpy() function copies the string pointed to by src (including the terminating null byte (‘