Skip to content

First project from 42 - create your own library of functions.

License

Notifications You must be signed in to change notification settings

amauricoder/42_libft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

42_libft

Banner

"This project is about coding a C library. It will contain a lot of general-purpose functions your programs will rely upon."

Table of Contents

Introduction

Libft is the initial project in the common core curriculum at 42 school. The objective of this project is to build your own library of functions that will later be utilized in almost all upcoming projects at 42. Over time, you can enhance this library with additional functions constructed during other projects, such as get_next_line and ft_printf. However, in this repository, you will only find the first version of Libft, containing the functions required by the project's specifications.

The code was written according to the 42 norm guidelines (norminette).

Usage

To use the library in your project, follow these steps:

  1. Clone the repository
git clone https://github.com/yourusername/42_libft.git
  1. Do make to compile the files
make

This will generate the libft.a file in the root folder, that is library containing all the functions.

  1. Go to your header file and include the library
# include "libft.h"

First Part

In this initial phase of the project, you are tasked with re-implementing specific functions from the Libc Library. For a detailed list of functions included in this section, please refer to the Subject.

Second Part

The subsequent phase focuses on the development of a set of functions, either absent in the libc or presented in a different form. To explore the comprehensive list of functions in this section, check the Subject.

Bonus

For the bonus segment of the project, you will construct functions capable of manipulating lists. For a more detailed understanding of the functions in the bonus part, please consult the Subject.

Makefile Overview

In this project, the Makefile offers the following essential rules:

  • make: Compiles the primary and secondary functions into libft.a.

  • make clean: Cleans the directory by removing .o files, preserving libft.a.

  • make fclean: Completely cleans the directory by deleting both .o files and libft.a.

  • make re: Refreshes libft.a by recompiling everything.

Additionally:

  • make bonus: Incorporates bonus functions into libft.a.

License

View License

About

First project from 42 - create your own library of functions.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published