From 7a34b3d412f5022d4ce25d84ec7fb4002b1fb5db Mon Sep 17 00:00:00 2001 From: Thomas Vanbesien Date: Sat, 21 Feb 2026 17:33:28 +0100 Subject: Implement libft Part 3 (linked lists) with tests Add t_list struct and 9 linked list functions: ft_lstnew, ft_lstadd_front, ft_lstsize, ft_lstlast, ft_lstadd_back, ft_lstdelone, ft_lstclear, ft_lstiter, ft_lstmap. --- src/ft_split.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/ft_split.c') diff --git a/src/ft_split.c b/src/ft_split.c index bb51c85..966ce5f 100644 --- a/src/ft_split.c +++ b/src/ft_split.c @@ -21,6 +21,7 @@ _s_count_words (char const *s, char c) return (count); } +/** Free the first @p n elements of @p arr, then @p arr itself. */ static void _s_free_all (char **arr, size_t n) { -- cgit v1.2.3