strcpy

Copy a string.

char * strcpy (char * dest, char * source);

Required Header
<string.h>

Return Value

The destination string is returned.

Parameters

dest

  A string buffer

source

  A string

Remarks

The strcpy function copies source to dest and returns the address of dest. There must be enough space in the dest buffer to prevent unexpected results.

String

See Also    memcpy, strcat, strcmp