How a-chem/42-cursus-libft works
Libft is a reusable C utility library that reimplements standard-library-style operations. A client program calls its public functions to transform or inspect values, allocate and manage data, and optionally write results to a file descriptor. The graph groups the documented capabilities and shows only internal calls visible in the supplied excerpts. The README documents the client usage; many individual implementations were not excerpted, so their internal relationships are not inferred.
Main entry points: ft_lstmap_bonus.c Map lists · src String operations · ft_lstadd_back_bonus.c List operations · ft_strjoin.c Build and transform
Components 12
Character utilities
Memory utilities
- Memory operations
src - Allocation and duplicate
src/ft_calloc.c
String utilities
- String operations
src - Build and transform
src/ft_strjoin.c - Split strings
src/ft_split.c
Conversions
- Parse integer
src/ft_atoi.c - Format integer
src/ft_itoa.c
Descriptor output
- Write to descriptor
src/ft_putendl_fd.c
Linked lists
- List operations
src/ft_lstadd_back_bonus.c - Map lists
src/ft_lstmap_bonus.c
Other components
- C client
Connections 7
- C client → Allocation and duplicate: calls ft_strdup
README.md - C client → Write to descriptor: calls ft_putendl_fd
README.md - Parse integer → Classify and case: checks digits
src/ft_atoi.c - Build and transform → String operations: measures strings
src/ft_strjoin.c - Split strings → String operations: measures strings
src/ft_split.c - Map lists → List operations: creates and appends
src/ft_lstmap_bonus.c - Map lists → List operations: clears on failure
src/ft_lstmap_bonus.c