实现1:
char *ho_strchr(const char *s, int c) {
for (;*s; ++s) {
if (*s == c)
return (char *)s;
}
return NULL;
}
实现1:
char *ho_strchr(const char *s, int c) {
for (;*s; ++s) {
if (*s == c)
return (char *)s;
}
return NULL;
}
转载于:https://my.oschina.net/guonaihong/blog/387319