reecrit main de delone comme celui de iter
This commit is contained in:
BIN
srcs/bonus/a.out
BIN
srcs/bonus/a.out
Binary file not shown.
@@ -72,22 +72,12 @@
|
|||||||
**
|
**
|
||||||
** int main(void)
|
** int main(void)
|
||||||
** {
|
** {
|
||||||
** char tresor;
|
|
||||||
** char matos;
|
|
||||||
** char friends;
|
|
||||||
** t_list *toto;
|
** t_list *toto;
|
||||||
** t_list *tmp;
|
|
||||||
** void (ft_delete)(void*);
|
** void (ft_delete)(void*);
|
||||||
**
|
**
|
||||||
** tresor = 'a';
|
** toto = ft_lstnew("a");
|
||||||
** matos = 'b';
|
** toto->next = ft_lstnew("b");
|
||||||
** friends = 'c';
|
** toto->next->next = ft_lstnew("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");
|
|
||||||
** printf("toto->data :%c\n",*(char*)(toto->content));
|
** printf("toto->data :%c\n",*(char*)(toto->content));
|
||||||
** printf("toto->nxt->data :%c\n",*(char*)(toto->next->content));
|
** printf("toto->nxt->data :%c\n",*(char*)(toto->next->content));
|
||||||
** printf("toto->nxt->nxt->data:%c\n",*(char*)(toto->next->next->content));
|
** printf("toto->nxt->nxt->data:%c\n",*(char*)(toto->next->next->content));
|
||||||
Reference in New Issue
Block a user