Skip to content

This project demands to create a C header file with a recreation of usual functions so that you can easily use them on your future projects.

Notifications You must be signed in to change notification settings

Kuninoto/42_Libft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

Libft (42Porto - 42Cursus) C Logo 

Grade: 125/100

Subject (v15): Libft en_subject

Installing and running the project:

1- Clone this repository

git clone https://github.com/Kuninoto/42_Libft

2- Navigate to lvl_0_libft and run make

cd 42_Libft/lvl_0_libft
make

3- make clean so that you don't keep those object files that you won't need anymore

make clean

4- Compile your main.c with your new libft.a

cc -Wall -Wextra -Werror main.c libft.a

Makefile Available Targets:

make or make all - Makes libft.a
make bonus - Makes libft.a with bonus functions (see Subject)
make clean - Deletes all the resulting object files
make fclean - Deletes libft.a and all the resulting object files
make re - Deletes everything (object files and libft.a) and rebuilds libft.a

Adding new functions to this library:

  • Add their prototypes to libft.h
  • Add their source files to lvl_0_libft
  • Add their source file names to "LIB_SRCS" variable inside the Makefile
To keep track of what's inside your resulting libft.a run ar -t libft.a

Tests:

libft-war-machine

libft-unit-test

Disclaimer

At 42School, almost every project must be written in accordance to the Norm, the schools' coding standard. As a result, the implementation of certain parts may appear strange and for sure had room for improvement.


Made by Nuno Carvalho (Kuninoto) | nnuno-ca@student.42porto.com

About

This project demands to create a C header file with a recreation of usual functions so that you can easily use them on your future projects.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published