-
Notifications
You must be signed in to change notification settings - Fork 0
/
libasm.h
42 lines (34 loc) · 1.6 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
37
38
39
40
41
42
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* libasm.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mli <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/03/26 13:06:31 by mli #+# #+# */
/* Updated: 2020/07/03 19:18:46 by mli ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef LIBASM_H
# define LIBASM_H
# include <stdio.h>
# include <string.h>
# include <fcntl.h>
size_t ft_strlen(const char *s);
char *ft_strcpy(char *dst, const char *src);
int ft_strcmp(const char *s1, const char *s2);
ssize_t ft_write(int fd, const void *buff, size_t count);
ssize_t ft_read(int fd, void *buff, size_t count);
char *ft_strdup(const char *s1);
typedef struct s_list
{
void *data;
struct s_list *next;
} t_list;
int ft_list_size(t_list *begin_list);
void ft_list_push_front(t_list **begin_list, void *data);
int ft_atoi_base(char *str, char *base);
void ft_list_sort(t_list **begin_list, int (*cmp)());
void ft_list_remove_if(t_list **lst, void *ref,
int (*cmp)(), void (*free_fct)(void *));
#endif