![score](https://private-user-images.githubusercontent.com/135198406/253794065-89220b3f-b138-442e-97f6-2420ab2c7491.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYwOTcwNDQsIm5iZiI6MTcyNjA5Njc0NCwicGF0aCI6Ii8xMzUxOTg0MDYvMjUzNzk0MDY1LTg5MjIwYjNmLWIxMzgtNDQyZS05N2Y2LTI0MjBhYjJjNzQ5MS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkxMVQyMzE5MDRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yZTBkZWI2MzhmOGEzY2E5ZDgzYWNjMGI0NThhMjg0OGQ3OWU0N2IzMjk3YzE2YTJiYjE0ZjA1MDFlYThmNGE0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.RxmCVcvqRPvvqswCtB1ZgRcHgitxwR60Wgiqs0WPPew)
Libft is a project at School 42, where we create our own library of useful functions in C.
This project is aimed at deepening our understanding of the C programming language. Functions developed in this project are analogous to the standard functions in C, and are used in the rest of our projects throughout the School 42 curriculum.
git clone https://github.com/Mr-Galt/libft.git
cd libft
make
This will compile the libft library and create a libft.a
file. You can then link this library to your own C project files while compiling with gcc or cc.
Here are some of the functions I developed for this library:
ft_strlen
: A function to calculate the length of a string.ft_strcpy
: A function to copy a string to another string.ft_strcmp
: A function to compare two strings.ft_atoi
: A function to convert a string to an integer.
(Will list all functions later...)
In addition to the basic functions, I also implemented some bonus functions, such as:
ft_lstnew
: A function to ...ft_lstmap
: A function to ...
(Will list all functions later...)
To test the functions, compile with your files and my libft.a library. For example:
gcc -L. -lft yourfile.c
This will produce a a.out file. Execute it to see the results.
This project was solely developed by myself, but I got help of many very clever friends and students.
This project is licensed under the MIT License.
![project overview](https://private-user-images.githubusercontent.com/135198406/253794092-f3df1f63-678c-46bc-b109-dcd6b31bf0ca.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYwOTcwNDQsIm5iZiI6MTcyNjA5Njc0NCwicGF0aCI6Ii8xMzUxOTg0MDYvMjUzNzk0MDkyLWYzZGYxZjYzLTY3OGMtNDZiYy1iMTA5LWRjZDZiMzFiZjBjYS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkxMVQyMzE5MDRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00OGQ4YTMyNDdiOGIzYWQyMWFjM2Y1MWU1MzFiNTRlMThmODE4OTdjZTM5YmFhZDdlNTE3YWNiMzVmYzM1NzJkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.gjzObj2sDN_5rkiwAmfWIRJXA07rcxvcwumZrseGYXw)