This is a revision of my first project in the 42 Silicon Valley curriculum. As incoming students, we were tasked with re-coding a set of standard libc
functions, as defined by their man pages as well as other useful functions from a given set of descriptions.
This project allows students to focus on learning the fundamentals of the C programming language in order to better utilize these tools in future projects.
Per the project, all of our functions must begin with ft_
for, Forty-Two.
Project Documents:
All functions were written according to 42's coding standard, the Norm.
- add ft_printf project as a submodule
Download the repository by copying and pasting the commands below.
git clone https://github.com/micriver/libft-2.0.git
cd libft-2.0
You can compile the library using the Makefile:
Command | Action |
---|---|
make |
Compile the library. |
make clean |
Remove object files. |
make fclean |
Remove object files and the library. |
make re |
Re-compile the library. |
After compilation, the library can be used alongside your C programs with the following command:
gcc libft.a -I ./header <your_file.c> -o <output_name>