#include <stdio.h>
char *ft_strcpy(char *dest, char *src){
while (*src != '\0'){
*dest = *src;
dest++;
src++;
}
}
int main() {
char src[] = "Coucou";
char dest[7];
ft_strcpy(dest, src);
printf("%s\n", src);
printf("%s\n", dest);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: