How khaled10a/libft works
Libft is a reusable C utility library: callers use its ft_ functions for libc-style character, memory, string and allocation operations, plus string utilities, descriptor output and linked-list helpers. The header exposes the API and list type; implementations are separate source files. Only a few internal calls are evidenced by the sampled source, so other functions are grouped by documented capability without implying call relationships. The README documents reuse by other projects; unsampled implementations are not inferred beyond those capabilities.
Main entry points: libft.h Public API · ft_lstmap.c List mapping · ft_lstclear.c List cleanup · ft_split.c String splitting
Components 17
Core functions
- Public API
libft.h - Character checks
- Memory operations
- Base strings
- Allocation and conversion
String utilities
- String construction
- String transforms
- String splitting
ft_split.c - String trimming
ft_strtrim.c
Linked lists
- Node creation
ft_lstnew.c - List insertion
- List traversal
- List cleanup
ft_lstclear.c - List iteration
ft_lstiter.c - List mapping
ft_lstmap.c
Descriptor output
- FD output
Other components
- C caller
Connections 22
- C caller → Public API: uses
- Public API → Character checks: exposes
libft.h - Public API → Memory operations: exposes
libft.h - Public API → Base strings: exposes
libft.h - Public API → Allocation and conversion: exposes
libft.h - Public API → String construction: exposes
libft.h - Public API → String transforms: exposes
libft.h - Public API → String splitting: exposes
libft.h - Public API → String trimming: exposes
libft.h - Public API → FD output: exposes
libft.h - Public API → Node creation: exposes
libft.h - Public API → List insertion: exposes
libft.h - Public API → List traversal: exposes
libft.h - Public API → List cleanup: exposes
libft.h - Public API → List iteration: exposes
libft.h - Public API → List mapping: exposes
libft.h - String splitting → String construction: calls substring
ft_split.c - String trimming → Base strings: searches set
ft_strtrim.c - List cleanup → List cleanup: deletes nodes
ft_lstclear.c - List mapping → Node creation: creates nodes
ft_lstmap.c - List mapping → List insertion: appends nodes
ft_lstmap.c - List mapping → List cleanup: cleans on failure
ft_lstmap.c