Skip to content

RaulSoftDev/libft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Libft

Libft is a 42 Madrid Common Core project in which you will learn to build your own C library that will be useful for future projects.

About the project

In the Libft project you will make your own set of functions based in the C standard library as well as other functions that do not belong to it.

Mandatory part I

  • You will have to recode some of the C standard library libc functions.
  • The functions will have the same prototypes and will behave like the original ones.
  • The functions must stick to the man official software documentation descriptions.
  • The functions nomenclature will begin with ft_.
  • For example: strlen will be ft_strlen.

Mandatory part II

  • You will have to code new functions or some of those in the C standard library libc but in a different way.
  • Some of this functions may be useful to finish coding some of the Mandatory Part I functions.

Instructions

  • The use of global variables is forbidden.
  • If you have to split your function into others, make sure that they are static functions so that they cannot be used outside the script.
  • All files must be in the repository root folder.
  • The delivery of unused files is forbidden.
  • The program must compile with the -Wall -Wextra -Werror compiler flags.
  • You must use the ar command to create the library. libtool is strictly forbidden.
  • The libft.a file must be created in the repository root folder.

Compilation

Requirements

  • C compiler: gcc, cc, etc...
  • make utility.

Make commands

  • make: compile project.
  • make clean: deletes compilation files except the executables.
  • make fclean: deletes all compilation files.
  • make re: executes make fclean and make.

Build project

  1. Clone the repository:

    git clone https://github.com/RaulSoftDev/libft.git
  2. Build the project:

    make
  3. Use the library in your project:

    #include "libft/libft.h"
  4. Compile your project:

    gcc -Wall -Wextra -Werror *.c libft/libft.a

About

Libft C library project for 42 Madrid.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published