Your essential C toolkit for mastering foundational programming concepts.
For more information about the 42 curriculum and its projects, visit the 42cursus repository.
Libft is a comprehensive C library that replicates and enhances essential functions from the standard library, along with additional tools like linked list utilities. This project is a fundamental part of the 42 School curriculum and serves as a base for many other projects.
🚀 Goal: To code and compile basic C functions into a reusable library.
- CC compiler
- Standard C libraries
To compile the library, navigate to the project directory and run:
make
The libft library includes a range of functions that replicate the standard C library and extend it with new utilities. Here is a summary of the core functions:
ft_memset - Fill a block of memory with a particular value
ft_strlen - Calculate the length of a string.
ft_strcpy - Copy a string to a destination.
ft_strcmp - Compare two strings.
ft_strdup - Duplicate a string in memory.
And many more...
ft_memcpy - Copy a block of memory.
ft_memmove - Move a block of memory, safely handling overlaps.
ft_calloc - Allocate and zero-initialize memory.
ft_strjoin - Join two strings into a new one.
ft_split - Split a string into an array of strings based on a delimiter.
ft_substr - Extract a substring from a string.