Libft
is the first project at 42 that introduces the concept of creating a personal library in C.
This library includes a collection of commonly used functions from the standard C library (and a few additional ones) that will be used in many future projects.
By building Libft
, you will gain a deeper understanding of memory management, pointers, and efficient implementation of fundamental algorithms.
Libft implements the following categories of functions :
Functions from <string.h>
, <ctype.h>
, and <stdlib.h>
:
- String operations :
ft_strlen
,ft_strlcpy
,ft_strlcat
,ft_strchr
,ft_strrchr
,ft_strncmp
,ft_strdup
,ft_substr
,ft_strjoin
,ft_strtrim
,ft_split
.
- Character checks/conversions :
ft_isalpha
,ft_isdigit
,ft_isalnum
,ft_isascii
,ft_isprint
,ft_toupper
,ft_tolower
.
- Memory manipulation :
ft_memset
,ft_bzero
,ft_memcpy
,ft_memmove
,ft_memchr
,ft_memcmp
.
- Number conversion :
ft_atoi
.
Useful utility functions :
ft_calloc
,ft_itoa
,ft_putchar_fd
,ft_putstr_fd
,ft_putendl_fd
,ft_putnbr_fd
.
Functions to manipulate linked lists :
ft_lstnew
,ft_lstadd_front
,ft_lstadd_back
,ft_lstdelone
,ft_lstclear
,ft_lstiter
,ft_lstmap
.