Skip to content

stankudrow/libft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libft

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.

Table of Contents

Overview

This project was done in C during my learning at the School 42 (School 21). Now it is located in the c directory.

Libft in C

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):

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.

References

Some of my other 42cursus projects in C:

Resources on C programming language:

The reason why I won't learn C++ and practice it on the libft -> have fun.

Releases

No releases published

Packages

 
 
 

Contributors