

strcpy()                 String Function                 strcpy()




Copy one string into another

#include <string.h>
cchhaarr *ssttrrccppyy(_s_t_r_i_n_g_1, _s_t_r_i_n_g_2) cchhaarr *_s_t_r_i_n_g_1, *_s_t_r_i_n_g_2;

strcpy copies the contents  of string2, up to the null character,
into string1 and returns string1.

***** Example *****

See string.

***** See Also *****

memcpy(), string functions, string.h, strncpy()

***** Notes *****

string1 must  point to enough  space to hold  string2, or another
portion of the program or operating system may be overwritten.




































COHERENT Lexicon                                           Page 1


