stpcpy

Copies a nul-terminated string into the destination buffer, including the trailing nul byte, and returns a pointer to the trailing nul byte in dest. The return value is useful for concatenating multiple strings without having to repeatedly scan for the end.

string
stpcpy
(
string dest
,
string src
)

Parameters

dest string

destination buffer

src string

source string

Return Value

Type: string

a pointer to the trailing nul byte in dest