summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Lukas Jiriste [Wed, 6 Dec 2023 09:45:45 +0000 (10:45 +0100)]
Add long and long long versions of ft_atoi.
Add the functions ft_atol and ft_atoll to the file ft_atoi.c.
Add prototypes of these functions to libft.h.
Lukas Jiriste [Sun, 3 Dec 2023 20:28:28 +0000 (21:28 +0100)]
Change permissions of files added in previous commit
Remove execute permission from ft_strncat_alloc.c and get_next_line.c as
source files are not executable.
Lukas Jiriste [Sun, 3 Dec 2023 19:41:16 +0000 (20:41 +0100)]
Add get_next_line to libft
Splice get_next_line project neatly fit it inside libft while conforming
the Norm.
Change libft.h and Makefile accordingly.
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 [Wed, 1 Nov 2023 12:38:51 +0000 (13:38 +0100)]
Update ft_printf for its .gitignore
Lukas Jiriste [Wed, 1 Nov 2023 11:47:58 +0000 (12:47 +0100)]
Added .gitignore not to disturb git status when built
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.
Lukas Jiriste [Wed, 27 Sep 2023 13:46:12 +0000 (15:46 +0200)]
Removed assigning to dest[n+1]. It should have been dest[n], but is redundant.
Lukas Jiriste [Fri, 15 Sep 2023 16:48:24 +0000 (18:48 +0200)]
Added the function itoa_base fr unsigned integers. Changed libft.h accordingly.
Lukas Jiriste [Mon, 11 Sep 2023 11:17:47 +0000 (13:17 +0200)]
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.
Lukas Jiriste [Fri, 8 Sep 2023 10:11:54 +0000 (12:11 +0200)]
Repaired the function, so it can return "0" and doesn't write outside allocated memory.
Lukas Jiriste [Wed, 6 Sep 2023 11:23:43 +0000 (13:23 +0200)]
Merge branch '42Project' as it holds patched functions.
Lukas Jiriste [Wed, 6 Sep 2023 11:07:57 +0000 (13:07 +0200)]
Setting errno for inappropriate input has been removed as Moulinette
deems functions around errno forbidden.
Lukas Jiriste [Wed, 6 Sep 2023 11:01:47 +0000 (13:01 +0200)]
ft_strtrim now passes alelievr/libft-unit-test as do all other functions.
Lukas Jiriste [Tue, 5 Sep 2023 17:14:17 +0000 (19:14 +0200)]
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 [Tue, 5 Sep 2023 10:07:35 +0000 (12:07 +0200)]
ft_ctoa forward declaration has not been included in libft.h in previous commit.
Lukas Jiriste [Tue, 5 Sep 2023 09:48:50 +0000 (11:48 +0200)]
Added functions abs, ctoa and itoa_base and changed header and Makefile accordingly.
Lukas Jiriste [Thu, 24 Aug 2023 09:24:05 +0000 (11:24 +0200)]
Repaired ft_strndup. It duplicated n - 1 characters.
Lukas Jiriste [Thu, 24 Aug 2023 08:08:00 +0000 (10:08 +0200)]
Erased mentions of bonus from Makefile and libft.h as it is no longer needed.
Lukas Jiriste [Thu, 24 Aug 2023 07:47:08 +0000 (09:47 +0200)]
Added ft_strndup, because it is usefull for ft_printf.
Changed libft.h accordingly.
Lukas Jiriste [Wed, 16 Aug 2023 15:46:11 +0000 (17:46 +0200)]
Added bonus functions and changed libft.h and Makefile accordingly.
Lukas Jiriste [Wed, 16 Aug 2023 15:41:49 +0000 (17:41 +0200)]
Function ft_strtrim now allocates exactly the memory needed for the resulting string.
?inor changes were also made to make the code more consistent.
Lukas Jiriste [Wed, 16 Aug 2023 09:28:16 +0000 (11:28 +0200)]
Repaired functions to pass the Tripouille libftTester (mostly - I don't think some KOs are reasonable).
Lukas Jiriste [Tue, 15 Aug 2023 15:15:58 +0000 (17:15 +0200)]
Implemented functions of Part 2 and repaired older functions.
Everything passes norminette, compiles and links, but there are issues to be resolved.
Lukas Jiriste [Tue, 15 Aug 2023 11:03:47 +0000 (13:03 +0200)]
Implemented every function from Part 1.
Added libft.h header and Makefile.
Everything passes norminette and compiles to libft.a on make command.
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).