Libft is the foundational project in the 42 Cursus.
The objective of this project is to create your own C library by implementing a collection of basic and essential functions.
It will help you understand the basic of C, Headers, Makefiles, and Norms.
- Run
make
to compile the library. - Run
make re
to recompile everything.
After compiling, you can include this library in any of your future projects.
- Run
make clean
to remove every object files. - Run
make fclean
to remove every object files, including the library.
-
ft_isalnum
- Checks for an alphabetic or a digit character. -
ft_isalpha
- Checks for an alphabetic character. -
ft_isascii
- Checks for an ASCII character. -
ft_isdigit
- Checks for a digit character. -
ft_isprint
- Checks for a printable character -
ft_tolower
- Converts a character its lowercase equivalent. -
ft_toupper
- Converts a character its upperercase equivalent.
-
ft_bzero
- Replaces bytes with NULL. -
ft_memchr
- Scans a byte in a pointer. -
ft_memcmp
- Compares two pointers. -
ft_memcpy
- Copies two pointers. -
ft_memmove
- Copies two pointer without overlap. -
ft_memset
- Replaces bytes in a pointer. -
ft_strchr
- Scans a character in a string. -
ft_strdup
- Duplicates and allocates a string. -
ft_strlcat
- Concatenates two strings with a specified length. -
ft_strlcpy
- Copies a string with a specified length. -
ft_strlen
- Returns the length of a string. -
ft_strncmp
- Compares two strings with a specified length. -
ft_strnstr
- Scans a substring in a string. -
ft_strrchr
- Scans a character in a string in reverse.
-
ft_atoi
- String to Integer -
ft_calloc
- Allocates and replaces bytes with NULL. -
ft_itoa
- Integer to String
-
ft_putchar_fd
- Prints a character. -
ft_putendl_fd
- Prints a string followed by a newline. -
ft_putnbr_fd
- Prints an integer. -
ft_putstr_fd
- Prints a string. -
ft_split
- Splits a string into an array of strings. -
ft_striteri
- Applies a function to every characters of a string. -
ft_strjoin
- Concatenates and allocates two strings. -
ft_strmapi
- Applies a function to every characters of a string and allocates them. -
ft_strtrim
- Trims the beginning and end of a string. -
ft_substr
- Cuts and allocates a string.
-
ft_lstadd_back
- Adds an node at the end of a list. -
ft_lstadd_front
- Adds an node at the beginning of a list. -
ft_lstclear
- Deletes and frees a list. -
ft_lstdelone
- Deletes and frees a node with an applied function. -
ft_lstiter
- Applies a function to every nodes of a list. -
ft_lstlast
- Returns the last node of a list. -
ft_lstmap
- Applies a function to every nodes of a list. -
ft_lstnew
- Creates a new node. -
ft_lstsize
- Returns the size of a list.