Updated: April 19, 2023 |
Copy a string and return a pointer to the end of the result
#include <string.h> char * stpcpy( char * restrict dst, const char * restrict src );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The stpcpy() function copies the string pointed to by src (including the terminating NUL character) into the array pointed to by dst.
A pointer to the terminating NUL character copied into dst.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |