3 char *strncpy(char *d
, char *s
, int n
)
9 memcpy(d
+ len
, 0, n
- len
);
13 char *strcat(char *d
, char *s
)
15 strcpy(d
+ strlen(d
), s
);
19 int strncmp(char *d
, char *s
, int n
)
24 return memcmp(d
, s
, len
+ 1);
27 char *strstr(char *s
, char *r
)
33 if (!memcmp(s
, r
, len
))
35 s
= strchr(s
+ 1, *r
);