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