libft is a custom implementation of commonly used C standard library functions.
It acts as a foundational library reused across most other 42 projects.
The objective for this project is to gain understanding of memory management, string manipulation, and library utilization in C.
- Manual memory allocation (
malloc,free) - Pointer arithmetic
- String and memory utilities
- Linked list implementation (bonus)
- libc-like functions (
strlen,strdup,memcpy,strchr, ...) - Additional utility helpers
- Bonus: linked list operations
make
Include libft.a in your project:
#include "libft.h"
Compile with:
cc main.c -L. -lft