strcpy

Copies a character string

#include <strings.h>
char *strcpy (
        char *dest,
        const char *src
)

Arguments

dest Pointer to destination memory area
src Pointer to source character string

Return Value

dest, a pointer to the destination string is returned.

Explanation

The string pointed to by src is copied to the memory area pointed to by dest.

See Also

strncpy()