Standard C Functions


strcpy


Syntax

#include <string.h>
char *strcpy(char *str1, const char *str2);

Arguments

str1      pointer to the character string buffer copy destination
str2      pointer to the character string buffer source to be copied

Return Value

The pointer to str1 (the destination)

Description

Copies str2 on top of str1.