Libft is a custom implementation of a standard C library, providing a collection of commonly used functions that are not available by default. This project serves as a foundation for many other projects, offering essential utilities like string manipulation, memory management, linked list operations, and more.
The goal of this project is to create a personal library of functions that replicate or extend the functionality of the standard C library. These functions will be used throughout the 42 curriculum and will be essential tools in future C projects.
- Libc Functions: Re-implement common C standard library functions such as
ft_strlen
,ft_strcpy
,ft_strdup
, and others. - Additional Functions: Implement additional utility functions like
ft_substr
,ft_strjoin
,ft_split
,ft_itoa
, etc., which are not part of the standard library but are useful in many programming contexts.
- Linked List Functions: Create and manipulate linked lists using functions such as
ft_lstnew
,ft_lstadd_back
,ft_lstmap
, etc. - Memory Functions: Additional memory manipulation functions.
- Clone the Repository:
git clone https://github.com/cmunoz-g/libft.git
- Navigate to the Project Directory:
cd libft
- Compile the Library:
make
- Include in Your Project:
Include the
libft.h
header file in your project and link thelibft.a
library during compilation:#include "libft.h"
gcc main.c -L. -lft -o my_program