aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_split.c
diff options
context:
space:
mode:
authorThomas Vanbesien <tvanbesi@proton.me>2026-02-21 17:33:28 +0100
committerThomas Vanbesien <tvanbesi@proton.me>2026-02-21 17:33:28 +0100
commit7a34b3d412f5022d4ce25d84ec7fb4002b1fb5db (patch)
tree9546a74914e750e747adb2d9adcd7b67f96adf24 /src/ft_split.c
parent9bb8e5cd549eca189ce183f40f771c2a614ea8f6 (diff)
downloadLibft-7a34b3d412f5022d4ce25d84ec7fb4002b1fb5db.tar.gz
Libft-7a34b3d412f5022d4ce25d84ec7fb4002b1fb5db.zip
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.
Diffstat (limited to 'src/ft_split.c')
-rw-r--r--src/ft_split.c1
1 files changed, 1 insertions, 0 deletions
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)
{