ft_lstlast
Subject
Understandable explanation
I think that for this one the subject is clear enough, we have to return a pointer to the last element of the list, it's pretty easy to understand.
Hints
For this one, we basically have to do the same thing as for the ft_lstsize
function but we don't need to count how many elements are in the list nor return the count, but we directly return the tmp
element.
Commented solution
Last updated