2024-02-24 07:17:58 +00:00
|
|
|
#ifndef _LIBASM_H
|
|
|
|
# define _LIBASM_H
|
|
|
|
|
|
|
|
#include <stdio.h>
|
2024-02-26 04:47:24 +00:00
|
|
|
#include <errno.h>
|
|
|
|
#include <unistd.h>
|
2024-02-24 07:17:58 +00:00
|
|
|
|
2024-03-08 19:15:51 +00:00
|
|
|
typedef struct s_list {
|
|
|
|
void *data;
|
|
|
|
struct s_list *next;
|
|
|
|
} t_list;
|
|
|
|
|
2024-02-24 07:40:53 +00:00
|
|
|
size_t ft_strlen(const char *);
|
|
|
|
char *ft_strcpy(char *, const char *);
|
2024-02-24 08:38:29 +00:00
|
|
|
int ft_strcmp(const char *, const char *);
|
2024-02-26 04:47:24 +00:00
|
|
|
ssize_t ft_write(int, const void *, size_t);
|
|
|
|
ssize_t ft_read(int, void *, size_t);
|
|
|
|
char *ft_strdup(const char *);
|
2024-02-24 07:17:58 +00:00
|
|
|
|
2024-03-08 19:15:51 +00:00
|
|
|
void ft_list_push_front(t_list **, void *);
|
|
|
|
int ft_list_size(t_list *);
|
|
|
|
void ft_list_sort(t_list **, int (*)());
|
|
|
|
|
|
|
|
void ft_list_print(t_list *begin_list);
|
|
|
|
|
2024-02-24 07:17:58 +00:00
|
|
|
#endif
|