2024-03-08 19:15:51 +00:00
|
|
|
#include <stddef.h>
|
2024-02-26 04:47:24 +00:00
|
|
|
#include <string.h>
|
2024-03-08 19:15:51 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
#include "libasm.h"
|
2024-02-26 04:47:24 +00:00
|
|
|
|
2024-03-08 19:15:51 +00:00
|
|
|
int main(void) {
|
|
|
|
t_list *list;
|
2024-02-26 04:47:24 +00:00
|
|
|
|
2024-03-08 19:15:51 +00:00
|
|
|
list = NULL;
|
2024-02-26 04:47:24 +00:00
|
|
|
|
2024-03-08 19:15:51 +00:00
|
|
|
ft_list_push_front(&list, "toto\n");
|
|
|
|
ft_list_push_front(&list, "tutu\n");
|
|
|
|
ft_list_push_front(&list, "zaza\n");
|
|
|
|
ft_list_push_front(&list, "bobo\n");
|
|
|
|
ft_list_push_front(&list, "tata\n");
|
|
|
|
ft_list_push_front(&list, "babar\n");
|
|
|
|
ft_list_push_front(&list, "zoro\n");
|
2024-02-24 07:17:58 +00:00
|
|
|
|
2024-03-08 19:15:51 +00:00
|
|
|
ft_list_print(list);
|
2024-02-26 04:47:24 +00:00
|
|
|
|
2024-03-08 19:15:51 +00:00
|
|
|
printf("%lu\n", sizeof(t_list));
|
|
|
|
printf("%d\n", ft_list_size(list));
|
2024-02-24 07:40:53 +00:00
|
|
|
|
2024-03-08 19:15:51 +00:00
|
|
|
ft_list_sort(&list, &strcmp);
|
|
|
|
printf("On est sorti.e.s de cet enfer\n");
|
|
|
|
ft_list_print(list);
|
2024-02-24 07:17:58 +00:00
|
|
|
}
|