This is the first project of our cursus at 1337. In this project, we explored how to create our own library by re-writing various functions from the standard C library (libc). This experience gave us a deep understanding of the C language, and we developed several essential skills, including:
- Writing clean and reusable code
- Managing memory effectively
- Error handling
In this project, we recode more than 40 function from the (libc), Here is the list of the functions we implemented:
isalpha, isdigit, isalnum, isascii, isprint, strlen, memset, bzero, memcpy, memmove, strlcpy, strlcat, toupper, tolower, strchr, strrchr, strncmp, memchr, memcmp, strnstr, atoi, calloc, strdup, ft_substr, ft_strjoin, ft_strtrim, ft_split, ft_itoa, ft_strmapi, ft_striteri, ft_putchar_fd, ft_putstr_fd, ft_putendl_fd, ft_putnbr_fd, ft_lstnew, ft_lstadd_front, ft_lstsize, ft_lstlast, ft_lstadd_back, ft_lstdelone, ft_lstclear, ft_lstiter, ft_lstmap
git clone https://github.com/moadboujmaa/1337-libft
cd 1337-libft
make
# remember to include libft.h in your project
gcc project.c libft.a