stpcpy

fnstring stpcpy(string dest, string src)

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.

Parameters

destdestination buffer
srcsource string

Returns

a pointer to the trailing nul byte in dest