My first library in C : a collection of functions that will be a useful tool for 42 Cursus.
_Building my own basic C static library, which will be used throughout the rest of the program (42 Cursus). The
ft_*functions mostly mimic the behaviour of the traditional C functions, and must be written using at mostwrite()andmalloc().
📌 In the libft folder is the most up-to-date version of the library with functions learned in others projects.
See my custom-made library (up up version)🚀🌎
This project requires GNU Compiler Collection and GNU Make compiler.
❗️| Make sure you have all the required tools installed on your local machine then continue with these steps.
0. Download the archives
Download the archives and go to the standard_library directory:
# Clone the repository $ git clone https://github.com/mewmewdevart/libft # Enter into the directory $ cd libft/standard_libft/1. Compiling the library
Run the command in your terminal :
$ make2. Using it in your code
To use the library functions in your code, simply include its header:
#include "libft.h"If you try to compile your .c files with cc using "cc example.c" you will get an undefined symbol error for libft functions.
You have to tell the file which library it's using: ↓
$ cc example.c libft.a -o prog_exampleThat's it. Now run it using ./prog_example
Developed with love 💜 by Larissa Cristina Benedito (Mewmew/Larcrist).
