strcspn called strchr not ft_strchr
This commit is contained in:
parent
60c1d82186
commit
dd104edda4
1 changed files with 1 additions and 1 deletions
|
|
@ -6,7 +6,7 @@ size_t ft_strcspn(char *s, const char *delim)
|
||||||
|
|
||||||
str = s;
|
str = s;
|
||||||
while(*str)
|
while(*str)
|
||||||
if(strchr(delim,*str))
|
if(ft_strchr(delim,*str))
|
||||||
return (str - s);
|
return (str - s);
|
||||||
else
|
else
|
||||||
str++;
|
str++;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue