This project is an attempt to recode C standard functions (libc). As you might know, this is the first project 42 students have to do. This is my humble approach at this problem.
As of now, the main part (everything except *bonus.c) is functional. Bonus segfaults for some reason. Let me know if you have an idea why.
- Split doesn't
free()
all previously allocated substrings in case of amalloc()
fail ft_lstmap()
doesn'tfree()
all previously allocated nodes ifft_lstnew()
fails
Tests are located in the tests/
folder and use µnit.
To run them, you have to:
cd tests/
git clone https://github.com/nemequ/munit.git
cd ..
make bonus
gcc -L. -lft tests/*.c tests/munit/munit.c && ./a.out