ft_strsub - kibotrel/42-Libft GitHub Wiki

char	*ft_strsub(char const *s, unsigned int start, size_t len)

Description :

Allocates a string that is a sub-string of s starting from start index with len characters.

Return Value :

Returns the allocated sub-string.

Source code