This project is about coding a C library that contains a lot of general purpose functions to be used throughout the course.
Most of these funcions already exist on standard C libraries and so this project is about understanding the way these functions work, implementing and learning to use them. To add another layer of difficulty the only external functions allowed are: write(), malloc() and free().
ft_isalpha
- checks for an alphabetic characterft_isdigit
- checks for a digit (0 through 9)ft_isalnum
- checks for an alphanumeric characterft_isascii
- checks whether a giver char is representable as ASCII characterft_isprint
- checks for any printable characterft_toupper
- convert char to uppercaseft_tolower
- convert char to lowercaseft_strlen
- calculate the length of a stringft_strlcpy
- copy string to a specific sizeft_strlcat
- concatenate string to a specific sizeft_strchr
- locate first char occurence in string from the beginningft_strrchr
- locate first char occurence in string from the endft_strncmp
- compare two stringsft_strnstr
- locate a substring in a stringft_strdup
- creates a duplicate for the string passed as parameterft_atoi
- convert a string to an integerft_substr
- returns a substring from a stringft_strjoin
- concatenates two stringsft_strtrim
- trims the beginning and end of string with specific set of charsft_split
- splits a string using a char as parameterft_itoa
- converts a number into a stringft_strmapi
- applies a function to each character of a stringft_striteri
- applies a function to each character of a string
ft_memset
- fill memory with a constant byteft_bzero
- zero a byte stringft_memcpy
- copy memory areaft_memmove
- copy memory areaft_memchr
- scan memory for a characterft_memcmp
- compare memory areasft_calloc
- allocates memory and sets its byte values to 0
ft_lstnew
- creates a new list elementft_lstadd_front
- adds an element at the beginning of a listft_lstsize
- counts the number of elements in a listft_lstlast
- returns the last element of the listft_lstadd_back
- adds an element at the end of a listft_lstclear
- deletes and frees the listft_lstiter
- applies a function to each element of a listft_lstmap
- applies a function to each element of a list
ft_putchar_fd
- output a char to a file descriptorft_putstr_fd
- output a string to a file descriptorft_putendl_fd
- output a string to a file descriptor, followed by a new lineft_putnbr_fd
- output a number to a file descriptor