This was an introductory project for Hive Helsinki, the Finnish branch of the 42 Coding School network.
The assignment was to re-code from scratch the functionality of a subset of the standard libc functions, to learn to code in C as well as have a base library which to build upon as we are prohibited from using most built-in standard library functions in our projects.
The version tagged old is the first state of the project to pass the evaluations. (Hivers III old curriculum, Norm v3)
The functions feature:
- Counting
- String manipulation
- Memory operations
- Heap allocation / free
- Array operations
- Comparison
- Iteration / recursion
With bonuses regarding linked lists and custom functions.
cd
into the root folder and make
with the
appropriate rules to compile libft, then link it with your own
programs. See Makefile for further details.
The supported standard targets are:
all
: (default) standard deployment buildclean
: remove object filesfclean
: remove objects and binaryre
: full rebuild
In addition you can use the following, defined in config.mk
:
W
|BUILD_STRICT
: build with stricter -W flags, useful during developmentO
|BUILD_OPTIMAL
: build with heavier optimizationD
|BUILD_DEBUG
: build with debug symbols and fsanitize
Plus a utility command for running Norminette on the project:
norme
- .so target (mainly to support the testers on linux)