reecrit main de delone comme celui de iter

This commit is contained in:
Hugo LAMY
2019-11-21 00:34:59 +01:00
parent da6c5563d8
commit 71e165f894
2 changed files with 3 additions and 13 deletions

Binary file not shown.

View File

@@ -72,22 +72,12 @@
**
** int main(void)
** {
** char tresor;
** char matos;
** char friends;
** t_list *toto;
** t_list *tmp;
** void (ft_delete)(void*);
**
** tresor = 'a';
** matos = 'b';
** friends = 'c';
** toto = ft_lstnew(&tresor);
** tmp = ft_lstnew(&matos);
** ft_lstadd_back(&toto, tmp);
** tmp = ft_lstnew(&friends);
** ft_lstadd_back(&toto, tmp);
** printf("----------------------\n");
** toto = ft_lstnew("a");
** toto->next = ft_lstnew("b");
** toto->next->next = ft_lstnew("c");
** printf("toto->data :%c\n",*(char*)(toto->content));
** printf("toto->nxt->data :%c\n",*(char*)(toto->next->content));
** printf("toto->nxt->nxt->data:%c\n",*(char*)(toto->next->next->content));