How cafeuroff/libft works
Main Components
• Library Core: The entire collection of functions forms the core of the library.
• Memory Management Functions: Functions such as ft_memset, ft_memcpy, ft_memmove, and ft_calloc.
• String Manipulation Functions: Functions handling string length, duplication, joining, trimming, etc. (e.g., ft_strlen, ft_strdup, ft_strjoin, ft_strtrim, ft_split, etc.)
• Character and Conversion Functions: Functions for character classification and conversion (ft_isalnum, ft_toupper, ft_tolower, ft_itoa).
• Linked List Functions: Functions that operate on singly linked lists (ft_lstnew, ft_lstadd_front, ft_lstadd_back, ft_lstclear, etc.)
• I/O Functions: Functions to output strings and numbers (ft_putchar_fd, ft_putstr_fd, ft_putnbr_fd, ft_putendl_fd).
Relationships & Interactions
• The header file (libft.h) acts as the interface linking all the functional modules, so it should be included centrally.
Architectural Patterns / Design Principles
• Modular Design: Each file/function serves a single, specific purpose (Single Responsibility Principle).
• Reusability: The library is meant to be included and reused in other C projects.
• Cohesion: Grouping functions by category (strings, memory, lists, etc.) underlines high cohesion within modules.
Relevant Technologies & Tools
• Programming Language: C
• Build Tool: Make (Makefile)
• Compilation Artefact: Typically, a static library (commonly a .a file) generated from the compiled object files.