purge ancien files et mise a jour libftH

This commit is contained in:
Hugo LAMY
2019-11-25 15:46:21 +01:00
parent b6e9b9e5e6
commit 96c7ce814e
182 changed files with 239 additions and 2718 deletions

View File

@@ -6,7 +6,7 @@
/* By: hulamy <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/11/25 14:13:30 by hulamy #+# #+# */
/* Updated: 2019/11/25 14:13:49 by hulamy ### ########.fr */
/* Updated: 2019/11/25 14:31:30 by hulamy ### ########.fr */
/* */
/* ************************************************************************** */
@@ -14,19 +14,19 @@
** delete and free an element of the list and all the followings
*/
/*
/*
** #include <libc.h>
**
**
** typedef struct s_list
** {
** void *content;
** struct s_list *next;
** } t_list;
**
**
** t_list *ft_lstnew(void *content)
** {
** t_list *lst;
**
**
** if (!(lst = (t_list *)malloc(sizeof(*lst))))
** return (NULL);
** if (!content)
@@ -36,11 +36,11 @@
** lst->next = NULL;
** return (lst);
** }
**
**
** void ft_lstadd_back(t_list **alst, t_list *new)
** {
** t_list *tmp;
**
**
** if (alst)
** {
** tmp = *alst;
@@ -55,26 +55,26 @@
** new->next = NULL;
** }
** }
**
**
** void ft_delete(void *element)
** {
** *(char*)element = '\0';
** }
**
**
** void ft_lstdelone(t_list *lst, void (*del)(void *))
** {
** del(lst->content);
** free(lst);
** lst = NULL;
** }
**
**
** void ft_lstclear(t_list **lst, void (*del)(void *));
**
**
** int main(void)
** {
** t_list *toto;
** void (ft_delete)(void*);
**
**
** printf("sizeof(t_list)%lu\n",sizeof(t_list));
** toto = ft_lstnew("a");
** toto->next = ft_lstnew("b");
@@ -90,7 +90,7 @@
** printf("toto->nxt->nxt :%s\n",(char*)(toto->next->next));
** return (0);
** }
*/
*/
#include "libft.h"