반응형
size_t strspn(const char *s1, const char *s2)
size_t strspn(const char *s1, const char *s2) { size_t ret=0; while(*s1 && strchr(s2,*s1++)) ret++; return ret; }
반응형
size_t strspn(const char *s1, const char *s2)
size_t strspn(const char *s1, const char *s2) { size_t ret=0; while(*s1 && strchr(s2,*s1++)) ret++; return ret; }