C Programming Code Examples C > Strings Code Examples C Program to Copy one string into other with using library function C Program to Copy one string into other with using library function Copy "string1" into "string2". Result will be stored in "string2" strcpy functions is included in Header File : string.h #include<stdio.h> #include<string.h> int main() { char string1[88]; char string2[88]; printf("\nEnter the String 1 : "); gets(string1); strcpy(string2, string1); printf("\nCopied String : %s", string2); return (0); }