]> www.ljiriste.work Git - Libft.git/commit
Optimize node insertion into linked list
authorLukáš Jiřiště <redacted>
Mon, 6 Apr 2026 10:56:31 +0000 (12:56 +0200)
committerLukáš Jiřiště <redacted>
Mon, 6 Apr 2026 10:56:31 +0000 (12:56 +0200)
commit8aca47d71653775ab6b0d3af27a3d5f1f7259218
treec891a70f5053ce6a07e0371ef050fae24d544df5
parenta979622ee9092aee2e435ffdf91ceb1d28c93a31
Optimize node insertion into linked list

Linked list now holds a pointer to its last element so there is no need
for iterating through the whole list for appending.
Insertion into list was also moved to a new file.
Makefile
ft_struct/ft_llist.c
ft_struct/ft_llist_insert.c [new file with mode: 0644]
inc/ft_struct.h