dmbcalado / LibFT

First project on 42 course

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LIBFT (grade : 125)


https://user-images.githubusercontent.com/76601369/110706242-77158d00-81ef-11eb-8085-5da6f0988553.jpg

After passing through the Piscine this was my first project.

In this library you will find the following functions, working as intended:

✓bzero ✓calloc ✓memset ✓memmove ✓memchr ✓memcmp ✓memcpy

✓isalpha ✓isdigit ✓isalnum ✓isascii ✓isprint ✓toupper ✓tolower ✓atoi ✓itoa

✓strlen ✓strlcpy ✓strchr ✓strrchr ✓strlcat ✓strncmp ✓strnstr ✓strdup ✓substr ✓strjoin ✓strtrim ✓split

✓strmapi ✓striteri ✓putchar_fd ✓putchar_fd ✓putstr_fd ✓putendl_fd ✓putnbr_fd

And the bonus ones:

✓lstnew ✓lstnew ✓lstsize ✓lstlast ✓lstadd_back ✓lstdelone ✓lstclear ✓lstiter ✓lstmap

I also ran the three testers i found online, the Unit Tester (made by: alelievr), the LibftTester, a.k.a Tripouille tester (made by : jgambard) and the Libft War Machine (made by : y3ll0w42)[links below], and this is the ouput:


https://user-images.githubusercontent.com/99777188/155604500-d36bd410-714e-4d83-a632-a2c7a1aee0b4.jpg
We can see that its missing ft_memmcpy function in the Unit tester, the reason is that back in the days that this tester was made, memccpy was a mandatory function, and nowadays its not even asked for. I also found to be very usefull to run the 3 testers, since i passed in the unit one and after that i got KOs on Tripouille, and after i got everything right on Tripouille i still got one KO on War Machine. This is not due to one being better then the other, since one collegue of mine did a different order and got the same thing, so i can conclude that what is happening is that they complement each other very well, and they test different aspect limits of the code on each test.


https://user-images.githubusercontent.com/99777188/155854781-cca1bf7a-4372-4a45-b95d-61c401ce6f63.png

links of the testers:

Unit tester: https://github.com/alelievr/libft-unit-test

Tripouille tester: https://github.com/Tripouille/libftTester

War Machine tester: https://github.com/y3ll0w42/libft-war-machine

About

First project on 42 course


Languages

Language:C 97.8%Language:Makefile 2.2%