strcpy

Copies a string.

Library:LibC
Classification:ANSI
Service:Characters and Strings

Syntax

  #include <string.h> 
   
  char *strcpy (
     char         *dst,   
     const char   *src);
  

Parameters

dst

(OUT) Points to the array into which to copy the string.

src

(IN) Points to the string to be copied.

Return Values

Returns dst.

Remarks

Copying of overlapping objects is not guaranteed to work properly. See memmove to copy objects that overlap.

See Also