A custom C library reimplementing essential standard functions, along with additional utilities for string handling, memory management, and linked list operations — developed as part of the 42 Network curriculum.
This project aims to strengthen understanding of low-level programming by recreating key components of the C standard library from scratch.
<<<<<<< HEAD
=======
dev
- main → Stable, production-ready version.
- dev → Active development branch for new features and testing.
<<<<<<< HEAD
To build the library, run:
=======
To build the library, run:
dev
makeThis will generate a static library file:
libft.a
Cleaning and rebuilding:
make clean # Remove object files
make fclean # Remove object files + libft.a
make re # Rebuild everything<<<<<<< HEAD
=======
dev
You can include libft in your C projects by linking the compiled library:
gcc main.c -L. -lft -o mainInclude the header file in your source:
#include "libft.h"Example:
#include "libft.h"
#include <stdio.h>
int main(void)
{
char str[] = "Hello, Libft!";
printf("Length: %zu\n", ft_strlen(str));
return 0;
}<<<<<<< HEAD
=======
dev
.
├── Makefile
├── libft.h
├── ft_*.c
└── libft.a
<<<<<<< HEAD
=======
dev
- Memory:
ft_memset,ft_bzero,ft_memcpy,ft_calloc, etc. - Strings:
ft_strlen,ft_strdup,ft_strjoin,ft_split, etc. - Characters:
ft_isalpha,ft_toupper, etc. - Linked Lists:
ft_lstnew,ft_lstadd_front,ft_lstmap, etc.
<<<<<<< HEAD
=======
dev
AIT-EL-HAJ Abdelouadoud 📧 abait-el@student.1337.ma GitHub Repository