Closed ggjulio closed 4 years ago
Subject has change.
Old proto :
t_list *ft_lstmap(t_list *lst, void *(*f)(void *));
New proto :
t_list *ft_lstmap(t_list *lst, void *(*f)(void *), void (*del)(void *));
Unless this 2 problems,everything else is fine.
I did not find a way to make it crash using the old proto.
There was already some missing tests on the lst functions so that's not much of a problem :) But it's true that we could add tests for malloc protections (using the MALLOC_NULL
macro)
By the way. I can't find a way to make lstdelone work.
Do you mean that the test functions doesn't work anymore ?
lstmap proto updated