Libft
C project · library, libc
My own C standard library — the foundation every later 42 project is built on.
- 125/100grade
- 43functions
The problem
Write my own C standard library, used by every later 42 project.
What I built
- 23 libc functions (strlen, memmove, strlcat, atoi, calloc...).
- 11 extra helpers (split, strjoin, itoa, strtrim...).
- 9 linked-list functions for the bonus.
The hard part
Getting the details the manual pages only hint at: overlapping memory in memmove, strlcat return values, and protecting every allocation.
Built with
- C
- Makefile
- valgrind
- Norminette
More projects
- metro · Lisbon metro sim in pixel art: watch the four lines run, step into any station, board a train and ride it.
- call_me_maybe · Turns a sentence into a JSON function call with a 0.6B model using constrained decoding — parseable by construction, not by luck.
- codexion · Multithreaded twist on the Dining Philosophers: coders compete for shared dongles, with FIFO/EDF scheduling.
- fly-in · Drone fleet routing: Dijkstra pathfinding, turn-based scheduling and a pygame replay.
- a-maze-ing · Maze generator with multiple algorithms, pathfinding solvers and terminal visualization.
- push_swap · Highly optimized sorting with two stacks and a tiny set of allowed operations.
- ft_printf · printf rebuilt from scratch: chars, strings, pointers, decimals, unsigned and hex.
- get_next_line · Reads a file descriptor one line at a time with careful dynamic memory handling.