This work is published under the terms of MIT license
Since external libraries cannot be used in 42, except in specific cases, a library of basic functions must be created, recreating the standard C library, as well as other functions that are useful throughout the course, including those related to linked lists. You can also create your own functions of your choice.
The functions and Makefile are designed for use in a UNIX-like environment; any use outside this scope does not guarantee correct or efficient operation.
- Make
- GCC
- For the general section
make- For the bonus section.
make bonusAfter installation is complete, the libft.a file will appear. This static library can be used in any project.
You can include the library by including libft.h and libft.a as in the example:
- First include the header file in your C or header files.
#include "libft.h"- Then compile using the library
gcc main.c libft.aIf you find any errors or have any new ideas for improving this repository, feel free to open an Issue or Pull Request, or contact me at my email address: [email protected]