The purpose of this project is to recreate some basic functionality of LibC for use in future projects at 42. This ensures understanding of each of these functions.
Score 125% (Max) (Outstanding Project x 3)
libft_basics_1: 28/28 correct functions | libft_basics_2: 24/24 correct functions | libft_bonus: 6/6 correct functions
I spent extra time doing some code golf as I went along-- I'm sure some things can be improved but I learned a lot about writing cleaner code and using less memory. I didn't focus on speed this time.
I also practiced writing some test cases even though that's not required-- I thought that was a pretty useful thing to do while we could still compare vs 42FileChecker. It taught me what to test for on future projects, like when to check for NULLS/navigating memory properly/some little nuances about C.
Project Specs: Libft.pdf
Coding Format Standards: Norm.pdf
The JemLibftTests
folder is designed to be dropped into a libft project and compare vs libc. It's primative compared to 42 File Checker but it has been good practice for writing robust test cases.
1.) To keep ft_memmove
short it calls on mempcy. ft_memcpy
needs to move from the front of the string to pass the memmove overlap tests. While memmove has to have a case to move from the back of the string for src < dst.