This project is a library of functions built using C programing language to be used in future projects of 42SP.
This project is part of the 42SP curriculum required to become a Software Engineer.
The implemented functions are described in the documentation.
The prerequisites are as follows with the respective versions used.
- Ubuntu (20.04.4 LTS)
- git (2.25.1)
- clang (10.0.0-4ubuntu1)
- GNU Make (4.2.1)
In your terminal, clone the repository.
git clone git@github.com:gccunha015/42-libft.git libft
Enter the directory cloned.
cd libft
There are some ways to build this project:
- Create basic static library:
make
- Include bonus functions
make bonus
- Include gnl function
make gnl
- Include ft_printf function
make printf
Install it on your project folder, then create your project object files:
COMPILER COMPILER_FLAGS -Ilibft/include SOURCE_FILES
After creating the object files, link them into your project executable:
COMPILER COMPILER_FLAGS -o EXECUTABLE_NAME OBJECT_FILES -Llibft -lft