Skip to content

[42 Cursus] My first library in C : a collection of functions that will be a useful tool.

License

Notifications You must be signed in to change notification settings

mewmewdevart/libft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Libft

My first library in C : a collection of functions that will be useful tools for 42 Cursus.

GitHub code size in bytes Main language Main language

💡 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 and GNU 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:

# 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 :

$ make

2. 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_example

That's it. Now you can run it using ./prog_example .

📋 Credits

Developed with love 💜 by Larissa Cristina Benedito (Mewmew/Larcrist).

About

[42 Cursus] My first library in C : a collection of functions that will be a useful tool.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published