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_atoi
ft_bzero
ft_calloc
ft_isalnum
ft_isalpha
ft_isascii
ft_isdigit
ft_isprint
ft_itoa
ft_lstadd_back
ft_lstadd_front
ft_lstclear
ft_lstdelone
ft_lstiter
ft_lstlast
ft_lstmap
ft_lstnew
ft_lstsize
ft_memchr
ft_memcmp
ft_memcpy
ft_memmove
ft_memset
ft_printf
ft_printf_putnbr_dec_hex_ptr
ft_printf_utils
ft_putchar_fd
ft_putendl_fd
ft_putnbr_fd
ft_putstr_fd
ft_split
ft_strchr
ft_strdup
ft_striteri
ft_strjoin
ft_strlcat
ft_strlcpy
ft_strlen
ft_strmapi
ft_strncmp
ft_strnstr
ft_strrchr
ft_strtrim
ft_substr
ft_tolower
ft_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 [email protected]:liocle/libft.git
- Build the library:
make
- Link a project with
libft.a
archive: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;
}