Libft is a C programming project aimed at creating a custom C library containing a set of general-purpose functions. The goal is to understand and implement functions similar to those found in the standard C library (libc). This library will serve as a foundation for future C school assignments.
- Language: The project must be written in C.
- Norm Compliance: Ensure that your code complies with the Norm.
- Functionality: Functions should not quit unexpectedly, and memory must be properly managed to avoid leaks.
- Makefile: Provide a Makefile with rules for compiling and cleaning the project.
- Testing: Create test programs to validate your functions.
- Declaring global variables is forbidden.
- Use static functions for helper functions.
- Place all files at the root of your repository.
- Unused files are not allowed.
- Compilation flags: -Wall -Wextra -Werror.
- Use the
arcommand to create your library.
Implement libc functions with the 'ft_' prefix. Some functions include:
- isalpha
- isdigit
- strlen
- memcpy
- strchr
- atoi
Implement custom functions such as:
ft_substrft_strjoinft_strtrimft_splitft_itoa- and more...
Expand your library to include functions for manipulating linked lists using the t_list structure.
Functions to implement include:
ft_lstnewft_lstadd_frontft_lstsizeft_lstlastft_lstadd_backft_lstdeloneft_lstclearft_lstiterft_lstmap