Lukas Jiriste [Sat, 9 Dec 2023 14:56:42 +0000 (15:56 +0100)]
Enforce header inclusion rules
The following rules are (to be) used:
-Sort header inclusion from local to global
-Always include header which declares the functions in file
-Only include header when it is neccesary for compilation
Lukas Jiriste [Fri, 3 Nov 2023 16:03:35 +0000 (17:03 +0100)]
Change subproject handling, add advanced list funcs
Turn submodules into standard folder.
- Submodules were probably not the correct choice int the first place
- Makefile handling of submodules was bad and hacky
Turn list handling to subproject ft_lst, add advanced list handling.
Change Makefile and header accordingly.
Lukas Jiriste [Tue, 3 Oct 2023 16:46:16 +0000 (18:46 +0200)]
Added ft_printf as a submodule.
Quite some changes where made in Makefile to make it work
and it is not pretty.
Update to libft.h by the ft_printf function prototype.
This branch will contain functions that don't crash in cases in which the std functions probably crash.
This functionality may be useful but is held on separate branch in order to have "pure" std functionality also.
Changed the functions so that they pass the alelievr/libft-unit-test.
ft_strtrim needs to also handle empty strings and strings containing only chars from set.
Lukas Jiriste [Mon, 14 Aug 2023 11:45:12 +0000 (13:45 +0200)]
Added a couple of wanted functions.
Also added 2 additional functions - islower and isupper.
These functions naturaly fit in and are used for more readible implementation of other functions.
Each .c file includes the library header libft.h (libft.h is not added in this commit).