The strcpy function

Name

strcpy -- Copy a string

Synopsis

#include <string.h>

void *strcpy (char *s1, char *s2);

Description

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 then the behavior is undefined.

Returns

The strcpy function returns the value of s1.

Implementation Notes

None