13#include "../includes/libft.h"
15static char **
ft_fill_split(
char **split,
char const *s,
char c);
63 while (s[i] && s[i] != c)
65 split[j] =
ft_substr(s, start, i - start);
95 while (s[i] && s[i] != c)
static size_t ft_count_words(char const *s, char c)
Counts words separated by a delimiter in a string.
char ** ft_split(char const *s, char c)
Splits a string into an array of substrings.
static void ft_free_split(char **split, size_t i)
Frees partially allocated split entries.
static char ** ft_fill_split(char **split, char const *s, char c)
Fills the split array with allocated word substrings.
char * ft_substr(char const *s, unsigned int start, size_t len)
Extracts a substring from a string.