setos

拙OS
Log | Files | Refs | LICENSE

strcpy.c (117B)


      1 #include <libc.h>
      2 
      3 char *
      4 strcpy(char *s1, char *s2)
      5 {
      6 	char *s = s1;
      7 	for (;*s2;) {
      8 		*s1++ = *s2++;
      9 	}
     10 	return s;
     11 }