https://github.com/mewmewdevart/libft
[42 Cursus] My first library in C : a collection of functions that will be a useful tool.
https://github.com/mewmewdevart/libft
42cursus 42saopaulo c libft library makefile
Last synced: 12 months ago
JSON representation
[42 Cursus] My first library in C : a collection of functions that will be a useful tool.
- Host: GitHub
- URL: https://github.com/mewmewdevart/libft
- Owner: mewmewdevart
- License: mit
- Created: 2022-09-14T04:13:39.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-02T00:23:36.000Z (almost 3 years ago)
- Last Synced: 2023-05-02T01:47:47.062Z (almost 3 years ago)
- Topics: 42cursus, 42saopaulo, c, libft, library, makefile
- Language: C
- Homepage:
- Size: 151 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Libft
My first library in C : a collection of functions that will be useful tools for 42 Cursus.
## 💡 About the project
> _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 behavior of the traditional C functions, and must be written using at most ```write()``` and ```malloc()```.
📌 In the premium 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)🚀🌎
## 🛠️ Usage
### Requirements
This project requires [GNU Compiler Collection](https://gcc.gnu.org/) and [GNU Make](https://www.gnu.org/software/make/) compiler.
❗️| Make sure you have all the required tools installed on your local machine then continue with these steps.
### Instructions
**0. Download the archives**
Download the archives and go to the standard_library directory:
```bash
# Clone the repository
$ git clone https://github.com/mewmewdevart/libft
# Enter into the directory
$ cd libft/standard_libft/
```
**1. Compiling the library**
Run this command in your terminal :
```shell
$ make
```
**2. Using it in your code**
To use the library functions in your code, simply include its header:
```C
#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: ↓
```shell
$ cc example.c libft.a -o prog_example
```
That's it. Now you can run it using ./prog_example .
## 📋 Credits
* [Acelera/Rodsmade](https://github.com/rodsmade/Projets_42_SP/)
* [libftTester/Tripouille](https://github.com/Tripouille/libftTester)
* [libft-war-machine/y3ll0w42](https://github.com/y3ll0w42/libft-war-machine)
Developed with love 💜 by Larissa Cristina Benedito (Mewmew/Larcrist).