Libft is a project that allows you to build your own C library, gathering useful functions that you can use in most of your C projects during the 42 cursus.
- Libc Function Reimplementation: Create customized versions of standard libc functions, such as
ft_strlen,ft_memcpy, among others. - Additional Functions: Develop functions that are not present in the libc, but are useful for string and memory manipulations.
- List Management: In the bonus section, linked list manipulation is introduced with functions to add, delete, and manage nodes.
Written in C following the 42 Norm (Norminette).
Includes a Makefile to compile the library.
Global variables are not allowed, and all files must be compiled with the flags -Wall -Wextra -Werror.
This project is a fundamental base in the 42 cursus, and students are encouraged to expand it throughout the year, adding functions as needed in future projects.
| Libc functions | Additional functions | Bonus functions |
|---|---|---|
| isalpha | ft_substr | ft_lstnew |
| isdigit | ft_strjoin | ft_lstadd_front |
| isalnum | ft_strtrim | ft_lstsize |
| isascii | ft_split | ft_lstlast |
| isprint | ft_itoa | ft_lstadd_back |
| strlen | ft_strmapi | ft_lstdelone |
| memset | ft_striteri | ft_lstclear |
| bzero | ft_putchar_fd | ft_lstiter |
| memcpy | ft_putstr_fd | ft_lstmap |
| memmove | ft_putendl_fd | |
| strlcpy | ft_putnbr_fd | |
| strlcat | ||
| toupper | ||
| tolower | ||
| strchr | ||
| strrchr | ||
| strncmp | ||
| memchr | ||
| memcmp | ||
| strnstr | ||
| atoi | ||
| calloc | ||
| strdup |