The first project of the School 42.
Linted according to the norminette v3.3.51 rules (at the time of writing which was a long time ago) and not anymore.
This project was done in C during my learning at the School 42 (School 21). Now it is located in the c directory.
I reorganised the original code and placed it in the c directory. To build the project, use make or make bonus which will create a static "libft.a" library. During my time at School 42, I checked the correctness of the library using the following testing programs (attention, these programs are written by people, so rely on them cautiously):
- libft-unit-test (contributed more long time ago)
- libftTester (contributed less and also long time ago)
- libft-war-machine
It is normal (!) if some of your functions are reported as not protected, you don't need to be scared of opinionated "boom" messages..or maybe you have to depending on the School 42 current subject.
Later on, I decided that I needed (for some unexplicable reason) to learn how to write unit tests in C and this project seems to me like a perfect candidate to start with. I picked Check framework because it is:
- installable via
sudo apt install check(see the Installing Check section for more details); - simple enough and has some documentation and even tutorials: basic and advanced + not so-long API reference;
- advised/required (?) at School 21.
So, if you are a student or an "intern" at School 21 or 42, you might want to use the "Check" framework in your C projects. Tests are available in the c/tests directory. Tests are not organised according to best practices, so please don't expect them to be idiomatic and well-structured. Disclaimer: I had and have no eagerness to provide full coverage for this project in C, only functions or data structures of interest that was enough for me to master "Check" to some basic level.
Some of my other 42cursus projects in C:
Resources on C programming language:
- CodeVault playlist - must watch, practically all videos.
The reason why I won't learn C++ and practice it on the libft -> have fun.