stpcpy()

Copy a string and return a pointer to the end of the result

Synopsis:

#include <string.h>

char * stpcpy( char * restrict dst,
               const char * restrict src );

Arguments:

dst
A pointer to where you want to copy the string.
src
The string that you want to copy.

Library:

libc

Use the -l c option to qcc to link against this library. This library is usually included automatically.

Description:

The stpcpy() function copies the string pointed to by src (including the terminating NUL character) into the array pointed to by dst.

Note: Copying of overlapping objects isn't guaranteed to work properly. See the memmove() function for information on copying objects that overlap.

Returns:

A pointer to the terminating NUL character copied into dst.

Classification:

POSIX 1003.1

Safety:  
Cancellation point No
Interrupt handler No
Signal handler Yes
Thread Yes