1 #include <u.h> 2 #include <libc.h> 3 #define N 10000 4 5 char* strcpy(char * s1,char * s2)6 strcpy(char *s1, char *s2) 7 { 8 char *os1; 9 10 os1 = s1; 11 while(!memccpy(s1, s2, 0, N)) { 12 s1 += N; 13 s2 += N; 14 } 15 return os1; 16 } 17