My custom C function library for 42.
ft_isalnum- Checks if a character is alphanumericft_isalpha- Checks if a character is alphabeticft_isascii- Checks if a character is ASCIIft_isdigit- Checks if a character is a digitft_isprint- Checks if a character is printableft_tolower- Converts a character to lowercaseft_toupper- Converts a character to uppercase
ft_bzero- Sets a memory area to zeroft_calloc- Allocates and initializes a memory areaft_memchr- Searches for a character in a memory areaft_memcmp- Compares two memory areasft_memcpy- Copies a memory areaft_memmove- Moves a memory area (handles overlapping)ft_memset- Fills a memory area with a character
ft_strchr- Finds the first occurrence of a characterft_strdup- Duplicates a stringft_striteri- Applies a function to each character with its indexft_strjoin- Concatenates two stringsft_strlcat- Safely concatenates two stringsft_strlcpy- Safely copies a stringft_strlen- Calculates the length of a stringft_strmapi- Applies a function to each character and creates a new stringft_strncmp- Compares two strings up to n charactersft_strnstr- Searches for a substring within a stringft_strrchr- Finds the last occurrence of a characterft_strtrim- Removes specified characters from the start and endft_substr- Extracts a substringft_split- Splits a string into an array using a delimiter
ft_putchar_fd- Writes a character to a file descriptorft_putendl_fd- Writes a string followed by a newlineft_putnbr_fd- Writes a number to a file descriptorft_putstr_fd- Writes a string to a file descriptor
ft_lstadd_back- Adds an element at the end of the listft_lstadd_front- Adds an element at the beginning of the listft_lstclear- Deletes and frees all elements of a listft_lstdelone- Deletes and frees a single list elementft_lstiter- Iterates through a list and applies a functionft_lstlast- Returns the last element of the listft_lstmap- Creates a new list by applying a functionft_lstnew- Creates a new list elementft_lstsize- Counts the number of elements in a list
To run tests, run the following command
make fclean bonus- Do not copy this code for assessed work in 42 or other courses.
- Use this repository for study and reference only.
If you have any feedback, please reach out to us at my discord ! <3