strchrset renvois la place du premier char trouve
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
|
||||
#include "libft.h"
|
||||
|
||||
int ft_strchrset(char *s, char *set)
|
||||
char *ft_strchrset(const char *s, const char *set)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -25,7 +25,7 @@ int ft_strchrset(char *s, char *set)
|
||||
while (set[i] != '\0')
|
||||
{
|
||||
if (ft_strchr(s, set[i]) != NULL)
|
||||
return (1);
|
||||
return ((char *)set + i);
|
||||
i++;
|
||||
}
|
||||
return (0);
|
||||
|
||||
Reference in New Issue
Block a user