7.21.2.3 The strcpy function

Synopsis

1

#include <string.h>
char *strcpy(char * restrict s1,
     const char * restrict s2);

Description

2

The strcpy function copies the string pointed to by s2 (including the terminating null character) into the array pointed to by s1. If copying takes place between objects that overlap, the behavior is undefined.

Returns

3

The strcpy function returns the value of s1.