Your very first own library
This project is about coding a C library. It will contain a collection of general purpose functions the different programs of your cursus will rely upon.
In fact, C programming can be very tedious when one doesn’t have access to the highly useful standard functions. Then, this project is about understanding the way these functions work, implementing and learning to use them.
The objective of this project is to create a static library (.a file).
It is actually just an archive of the original .o files, made with the ar
command (a precedessor
of tar
now just used to make libraries).
$ git clone https://github.com/mariebriand/42-CC_Libft.git
$ cd 42-CC_Libft
$ make
You will then end up with a static library.
$ gcc -Wall -Werror -Wextra [some_file].c libft.a
And so, don't forget ton include the header libft.h
at the top of [some_file].c
that obviously must contain a main() function.
$ ./a.out
- Check for the right license (and document myself about open source licenses).
- Add a way to reach me for support.
- Add the official subject from 42intra.
This project is finished, it has passed the 3 needed peer-corrections and the 42moulinette.
As I did not passed all bonuses at that time (113 instead of 115), I corrected them after some time.
Even though everything should be good by now, be aware that bonuses were not tested the usual way.