-
Notifications
You must be signed in to change notification settings - Fork 0
/
libasm.h
36 lines (31 loc) · 1.54 KB
/
libasm.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* libasm.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mgarcia- <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/12/12 12:16:10 by mgarcia- #+# #+# */
/* Updated: 2020/12/12 21:38:13 by mgarcia- ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef LIBASM_H
# define LIBASM_H
size_t ft_strlen(char *str);
char *ft_strcpy(char *dest, const char *src);
int ft_strcmp(const char *str1, const char *str2);
int ft_write(int fd, char *buf, int nbytes);
int ft_read(int fd, char *buf, int nbytes);
char *ft_strdup(const char *s);
typedef struct s_list
{
void *data;
struct s_list *next;
} t_list;
int ft_atoi_base(char *str, char *base);
int ft_list_size(t_list *begin_list);
void ft_list_push_front(t_list **begin_list, void *data);
void ft_list_sort(t_list **begin_list, int (*cmp)());
void ft_list_remove_if(t_list **begin_list, void *data_ref,
int (*cmp)(), void (*free_fct)(void *));
#endif