The libft project at 42 School involves creating a library of basic functions, often found in the standard libraries of the C language, as well as some functions specific to the educational environment at 42.
-
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
ft_atoi_base
ft_list_remove_if
ft_strcpy_map
ft_strlen_map
ft_strcpy_map
ft_atol
ft_free_list
To integrate the libft library into your project, follow these steps:
- Clone this repository to your local machine.
git clone https://github.com/Lilien86/42-Libft
cd lib42
make make clean make fclean make re
To compile your program with the libft library, follow these steps:
- Ensure that your source file includes the header file libft.h.
#include "libft.h"
- Compile the program with the libft.a library.
gcc -o mon_programme mon_programme.c -L. -lft