libft/ft_strcpy.c

20 lines
173 B
C
Raw Normal View History

2023-05-27 19:52:39 +02:00
#include <stdio.h>
#include <string.h>
int main(){
char str1[10] = "hello";
char str2[10];
printf("%s\n", strcpy(str2, str1));
printf("%s", str2);
return 0;
}