This project is the first step in my journey at 42 Network. The goal of Libft is to rebuild essential functions from the C standard library, along with additional utility functions that will be useful throughout the entire curriculum. By implementing these functions, I gain a deeper understanding of low-level programming, memory management, and algorithmic problem-solving.
Libft consists of multiple categories of functions, including:
- Libc Functions: Rewriting standard library functions such as
strlen,strcpy,strcmp,memset,bzero, and more. - Memory Management: Implementing functions like
malloc,free, andreallocto handle dynamic memory allocation. - String Manipulation: Functions for handling and modifying strings efficiently.
- Linked Lists: Implementing basic linked list structures and operations.
- Custom Utility Functions: Additional helper functions that facilitate various tasks in future projects.
- Understanding the inner workings of core C functions.
- Improving problem-solving skills and debugging capabilities.
- Gaining a strong foundation for future 42 projects.
-
Clone the repository:
git clone https://github.com/msabr/LIBFT-1337 cd LIBFT-1337 -
Build the mandatory part:
make
-
Build the bonus part (optional):
make
This includes linked list functions in libft.a.
make clean: remove object files.make fclean: remove the program and object files.make re: rebuild everything.
libft.h: function prototypes.ft_*.c: mandatory function sources.ft_*_bonus.c: bonus function sources.Makefile: compilation automation.
