ft_wordlength - kibotrel/42-Libft GitHub Wiki

int	ft_wordlength(char const *s, int i, char c)

Description :

Computes the size of the string's portion of s starting at index i until either the first occurrence of the character c or string's end is reached.

Return Value :

Returns the size of the string's portion.

Source code