42Madrid libft proyect implementation
This is the first proyect in 42Madrid School. You have to create a library reproducing some existing functions, so you can exploit their functionality in future proyects, since allowed existing functions in 42Madrid proyects are limited.
-
Clone the repository:
git clone https:://github.com/riveroo19/42my_libft.git
-
Go inside the proyect directory and type
make
:cd 42my_libft; make
-
(Optional) Remove object files:
make clean
-
Take
libft.a
file to one of your proyects and include the libft header on your files:
#include "path/to/libft.h"
/*
code
*/
-
Compile using
libft.a
:gcc <.c files> -L. -lft -o <program> ./<program>
all
: compiles the libraryre
: recompiles the libraryclean
: removes all object filesfclean
: removeslibft.a
and object files
This will make your library having some other useful functions.
make bonus
: compiles the library including bonus funcions
At 42School, almost every project must be written in accordance to the Norm, the school's coding standard. As a result, the implementation of certain parts may appear strange and for sure had room for improvement.