ft_strtrim - kibotrel/42-Libft GitHub Wiki

char	*ft_strtrim(char const *s)

Description :

Trims n every ' ', '\n' or '\t' at the beginning and the end of the string s.

Return Value :

Returns a new allocated trimmed string based on the given string s.

Source code