41 while (start < end &&
ft_strchr(set, s1[start]))
43 while (end > start &&
ft_strchr(set, s1[end]))
45 s2 = malloc(end - start + 2);
char * ft_strchr(const char *s, int c)
Finds first occurence of character c in string s.
size_t ft_strlcpy(char *dst, const char *src, size_t dstsize)
Copy at most dstsize - 1 characters from string src into dst.
size_t ft_strlen(const char *str)
Get length of str.
char * ft_strtrim(char const *s1, char const *set)
Allocates and returns a copy of s1 with any successive characters found in string set removed from th...