[Libft] Bonus
libft 프로젝트의 bonus part 함수들을 구현하면서 메모했던 내용들을 정리해두었다. 이 라이브러리의 함수들은 꾸준히 업데이트 되고 있기 때문에 가장 최신의 코드는 여기 깃헙저장소를 참고...
1. ft_lstnew
Prototype
Parameters
1. The content to create the new element with.
Return value
External functs.
Description
2. ft_lstadd_front
Prototype
Parameters
1. The address of a pointer to the first link of a list.
2. The address of a pointer to the element to be added to the list.
External functs.
Description
3. ft_lstsize
Prototype
Parameters
1. The beginning of the list.
Return value
Description
4. ft_lstlast
Prototype
Parameters
1. The beginning of the list.
Return value
Description
5. ft_lstadd_back
Prototype
Parameters
1. The address of a pointer to the first link of a list.
2. The address of a pointer to the element to be added to the list.
Description
6. ft_lstdelone
Prototype
Parameters
1. The element to free.
2. The address of the function used to delete the content.
External functs.
Description
7. ft_lstclear
Prototype
Parameters
1. The adress of a pointer to an element.
2. The adress of the function used to delete the content of the element.
External functs.
Description
8. ft_lstiter
Prototype
Parameters
1. The adress of a pointer to an element.
2. The adress of the function used to iterate on the list.
Description
9. ft_lstmap
Prototype
Parameters
1. The adress of a pointer to an element.
2. The adress of the function used to iterate on the list.
3. The adress of the function used to delete the content of an element if needed.
Return value
External functs.
Description
Last updated