strcpy

Copies all of str_2, including the terminating null character, into str_1.

Format

#include  <string.h>

char *strcpy  (char *str_1, const char *str_2);
Function Variants This function also has variants named _strcpy32 and _strcpy64 for use with 32-bit and 64-bit pointer sizes, respectively. See Section 1.8 for more information on using pointer-size-specific functions.

Arguments

str_1, str_2
Pointers to character strings.

Description

This function copies str_2 into str_1, and stops after copying str_2's null character.

The behavior of this function is undefined if the area pointed to by str_1 overlaps the area pointed to by str_2.

Return Value
The address of str_ 1


Previous Page | Next Page | Table of Contents | Index