This project is a basic reimplementation of some essential glibc functions, without any special tricks.
libft is a first-year project from the 42 school, which I attended in 2013-2016. It abides to the strict rules of 42 not to exceed 5 functions per file, or 25 lines per function.
You can compile the project like this:
?> ./make
The code was written with macOS in mind but should work anywhere.
memsetbzeromemcpymemccpymemmovememchrmemcmpmemdel
ft_striterft_striterift_strmapft_strmapistrnewstrdelstrclrstrequstrnequstrsubstrtrimstrtrim_modstrsplitstrsplit_strstrcmpstrncmpstrrevstrlenstrposstrcpystrncpystrdupstrcatstrncatstrlcatstrjoinstrchrstrrchrstrstrstrnstr
putcharputstrputendlputnbrputtabprinthex
putstr_colorputstr_color_fdcolor_switch_fdcolor_reset_fd
pow_aminmaxmin_floatmax_float
-
isalpha -
isdigit -
isalnum -
isascii -
isprint -
isspace -
toupper -
tolower -
isnumeric -
aredigits
lstnewlstdelonelstdellstaddlstadd_backlstiterlstmap
memalloccallocrealloc
atoiitoaitoatabqsortswap
42 is a French programming school founded in 2013, rooted in P2P collaboration and self-directed learning. Its pedagogy is fully project-based. It is considered a good place to learn to code.
This project is licensed under the MIT license.
This project was created by Félix Déage.