C Programming Code Examples C > Strings Code Examples Program to Copy String Without Using strcpy() Program to Copy String Without Using strcpy() You can use the strcpy() function to copy the content of one string to another but, this program copies the content of one string to another manually without using strcpy() function. #include <stdio.h> int main() { char s1[88], s2[88], j; printf("Enter string s1: "); scanf("%s",s1); for(j = 0; s1[j] != '\0'; ++j) { s2[j] = s1[j]; } s2[j] = '\0'; printf("String s2: %s", s2); return 0; }