diff --git a/functions/ft_split.c b/functions/ft_split.c new file mode 100644 index 0000000..78bcbaa --- /dev/null +++ b/functions/ft_split.c @@ -0,0 +1,104 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_split.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: bcaffere 0)) + { + if (*s1 != *s2) + return ((unsigned char)*s1 - (unsigned char)*s2); + s1++; + s2++; + n--; + } + return (0); +}