Recoding certain functions of the standard C Library, but in x86-64 Intel Assembly.
Mandatory part : 100/100
Bonus : 25/25
Using make
will create the libasm.a
binary.
To include the library in your project, clone the repository in your working tree and compile with the following flags :
gcc -L. -lasm file.c
size_t ft_strlen(const char *s);
int ft_strcmp(const char *s1, const char *s2);
char *ft_strcpy(char *dst, const char *src);
char *ft_strdup(const char *s1);
ssize_t ft_read(int fildes, void *buf, size_t nbyte);
ssize_t ft_write(int fildes, const void *buf, size_t nbyte);
void ft_cat(int fildes);
int ft_list_size(t_list *lst);
int 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)());
int ft_atoi_base(char *str, char *base);