strcpy.c 167 B

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