How atemur/libft works
Libft is a small C utility library that reimplements standard-library-style routines and adds string, conversion, output, and linked-list helpers. Consumers call its functions directly; there is no application-level orchestrator or multi-stage user workflow. The graph groups the library’s principal capabilities and shows only internal calls visible in the excerpts. Several leaf modules were not excerpted, so their behavior is represented by the documented API and source inventory without inferred call relationships.
Main entry points: ft_split.c Build and transform strings · ft_lstmap.c Transform and clear lists · ft_strjoin.c Copy and join strings · ft_strlen.c String length
Components 15
String utilities
- Build and transform strings
ft_split.c - Search and compare strings
ft_strnstr.c - Copy and join strings
ft_strjoin.c - String length
ft_strlen.c
Memory utilities
- Memory operations
ft_memmove.c - Allocation and zeroing
ft_calloc.c
Character and conversion
- Character classification
ft_isalnum.c - Case conversion
ft_tolower.c - Parse integers
ft_atoi.c - Format integers
ft_itoa.c
Linked lists
- Create list nodes
ft_lstnew.c - Manage list links
ft_lstadd_back.c - Transform and clear lists
ft_lstmap.c
File descriptor output
- Write values to descriptors
ft_putstr_fd.c
Public API
Connections 11
- Build and transform strings → String length: calls
- Build and transform strings → Search and compare strings: calls
- Build and transform strings → Copy and join strings: copies with
- Search and compare strings → String length: calls
ft_strnstr.c - Copy and join strings → String length: calls
ft_strjoin.c - Copy and join strings → Copy and join strings: copies and appends
ft_strjoin.c - Format integers → Build and transform strings: duplicates result
ft_itoa.c - Memory operations → Memory operations: copies with
ft_memmove.c - Transform and clear lists → Create list nodes: creates nodes
ft_lstmap.c - Transform and clear lists → Manage list links: appends nodes
ft_lstmap.c - Transform and clear lists → Transform and clear lists: clears on failure
ft_lstmap.c