#include <stdio.h>
#include <unistd.h>
char *ft_strcpy(char *s1, char *s2)
{
int i;
i = 0;
while (s2[i])
{
s1[i] = s2[i];
i++;
printf("s1111%s\n", s1);
}
s1[i] = s2[i];
printf("s1%s\n", s1);
return (s1);
}
// DO NOT SUBMIT ANYTHING BELOW
#include <stdio.h>
#include <unistd.h>
int main(void)
{
char str1[] = "Flavi0";
char str2[] = "Gauch0";
printf("%s\n", str1);
ft_strcpy(str1, str2);
printf("finaée%s\n", str1);
return (0);
}
To embed this project on your website, copy the following code and paste it into your website's HTML: