28 lines
590 B
C
28 lines
590 B
C
#include <stddef.h>
|
|
#include <string.h>
|
|
#include <stdio.h>
|
|
#include "libasm.h"
|
|
|
|
int main(void) {
|
|
t_list *list;
|
|
|
|
list = NULL;
|
|
|
|
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");
|
|
|
|
ft_list_print(list);
|
|
|
|
printf("%lu\n", sizeof(t_list));
|
|
printf("%d\n", ft_list_size(list));
|
|
|
|
ft_list_sort(&list, &strcmp);
|
|
printf("On est sorti.e.s de cet enfer\n");
|
|
ft_list_print(list);
|
|
}
|