hello 👁
..

Libft (Custom C Library, Re-implementing Standard Functions)

Libft was my first major project at 42 School and a key turning point in mastering C programming. The goal was to recode essential standard C functions from scratch, giving me a deeper understanding of how these fundamental building blocks work under the hood.

What I Built

I recreated functions like strlen, memcpy, and strdup, which helped me get hands-on experience with memory management and string manipulation. On top of that, I developed custom functions like:

  • A lightweight printf: Mastering variadic arguments and formatted output.
  • get_next_line: A function to read files line-by-line, which became essential for later projects.

Why It Matters

This project wasn’t just a simple recoding exercise. It was about learning to think like a systems programmer—handling pointers, managing memory efficiently, and writing code that performs well. It also laid the groundwork for tackling more complex challenges later on, like building my own raytracing engine and optimizing algorithms.

Looking back, the code could be cleaner, but Libft taught me how to problem-solve at a low level, setting the foundation for many future projects.

Check out the project on GitHub