// C Program to copy one string into other without using library function
#include<stdio.h>
#include<conio.h>
void main()
{
char str1[100];
char str2[100];
int len=0,i=0;
printf("Enter the string to copy");
gets(str1);
while(str1[i]!='\0')
{
len++;
i++;
}
len--;
i--;
for(i=0; i<=len; i++)
{
str2[i]=str1[i];
}
printf("\nCopied string is\n");
for(i=0; i<=len; i++)
{
printf("%c", str2[i]);
}
getch();
}