This is the very first project in 42's core curriculum. The goal is to learn more about standard C functions and explore how they work by implementing them from scratch. The finished project is a custom library that can be reused in later projects.
More details about this project and its implementation can be found in the attached subject file
Function
Description
ft_isalpha
Tests for an alphabetical character.
ft_isdigit
Tests whether a character is a decimal digit.
ft_isalnum
Tests for an alphanumeric character.
ft_isascii
Checks for a valid ASCII set character.
ft_isprint
Tests whether a character is printable.
ft_toupper
Converts a lower-case character to upper-case.
ft_tolower
Converts an upper-case character to lower-case.
Function
Description
ft_strlen
Finds the length of a given string.
ft_strlcpy
Size-bounded string copying.
ft_strlcat
Size-bounded string concatenation.
ft_strchr
Finds the first occurrence of a character in a string.
ft_strrchr
Finds the last occurrence of a character in a string.
ft_strncmp
Compares the first 'n' characters of two strings.
ft_strnstr
Finds the first occurrence of a substring within first 'n' characters.
ft_substr
Extracts a substring from a given string.
ft_strjoin
Concatenates two strings into a new string (with malloc).
ft_strtrim
Trims the beginning and end of a string with a specified set of characters.
ft_split
Splits a string into an array of substrings based on a delimiter character.
ft_strmapi
Creates a new string by applying a function to each character of a string.
ft_striteri
Applies a function to each character of a string.
Function
Description
ft_calloc
Allocates memory and initializes each block with a default value.
ft_memset
Sets the first 'n' bytes of memory to a given value.
ft_bzero
Sets the first 'n' bytes of memory to zero.
ft_memcpy
Copies 'n' bytes of memory (ignores memory overlaps)
ft_memmove
Copies 'n' bytes of memory (handles memory overlaps)
ft_memchr
Scans the first 'n' bytes of memory for the first occurrence of a given value.
ft_memcmp
Compares the first 'n' bytes of two areas in memory
ft_strdup
Creates a copy of a string (with malloc)
Function
Description
ft_atoi
Converts an ASCII string to an integer value.
ft_itoa
Converts an integer to a valid ASCII string.
5. File descriptor functions:
Function
Description
ft_putchar_fd
Outputs a character to the given file descriptor.
ft_putstr_fd
Outputs a string to the given file descriptor.
ft_putendl_fd
Outputs a string followed by a new line to the given file descriptor.
ft_putnbr_fd
Outputs an integer to the given file descriptor.