A custom C library containing various standard functions implemented from scratch. This library is part of a programming project from the 42 school curriculum.
libft is a collection of C functions that replicate the behavior of some standard library functions as well as additional utility functions. These functions were implemented as part of a learning exercise, focusing on memory manipulation, string handling, and basic data structures.
ft_atoift_bzeroft_callocft_isalnumft_isalphaft_isasciift_isdigitft_isprintft_itoaft_lstadd_backft_lstadd_frontft_lstclearft_lstdeloneft_lstiterft_lstlastft_lstmapft_lstnewft_lstsizeft_memchrft_memcmpft_memcpyft_memmoveft_memsetft_printfft_printf_putnbr_dec_hex_ptrft_printf_utilsft_putchar_fdft_putendl_fdft_putnbr_fdft_putstr_fdft_splitft_strchrft_strdupft_striterift_strjoinft_strlcatft_strlcpyft_strlenft_strmapift_strncmpft_strnstrft_strrchrft_strtrimft_substrft_tolowerft_toupper
To use this library in a C projects, simply include the appropriate header file and link with the compiled libft.a archive.
- Clone the repository:
git clone git@github.com:liocle/libft.git
- Build the library:
make
- Link a project with
libft.aarchive:gcc -o your_program your_source.c -L. -lft
#include "libft.h"
int main() {
char *str = "Hello World!";
ft_putstr_fd(str, 1);
return 0;
}