From: Lukas Jiriste Date: Sat, 9 Dec 2023 14:56:42 +0000 (+0100) Subject: Enforce header inclusion rules X-Git-Url: https://git.ljiriste.work/?a=commitdiff_plain;h=9ec2c05a0b6f64c46a8ee73412dfb533b39ccb1e;p=Libft.git 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 --- diff --git a/ft_check/ft_isalnum.c b/ft_check/ft_isalnum.c index 55f946c..d596a2c 100644 --- a/ft_check/ft_isalnum.c +++ b/ft_check/ft_isalnum.c @@ -6,11 +6,11 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/08/14 13:02:16 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:41 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:20:12 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ -#include "libft.h" +#include "ft_check.h" int ft_isalnum(int c) { diff --git a/ft_check/ft_isalpha.c b/ft_check/ft_isalpha.c index 301e7ae..af5737f 100644 --- a/ft_check/ft_isalpha.c +++ b/ft_check/ft_isalpha.c @@ -6,11 +6,11 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/08/14 13:32:19 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:41 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:20:12 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ -#include "libft.h" +#include "ft_check.h" int ft_isalpha(int c) { diff --git a/ft_check/ft_isascii.c b/ft_check/ft_isascii.c index 4355d2e..f8971c9 100644 --- a/ft_check/ft_isascii.c +++ b/ft_check/ft_isascii.c @@ -6,11 +6,11 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/08/15 12:19:40 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:41 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:20:12 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ -#include "libft.h" +#include "ft_check.h" int ft_isascii(int c) { diff --git a/ft_check/ft_isdigit.c b/ft_check/ft_isdigit.c index 7fee391..ae10fdc 100644 --- a/ft_check/ft_isdigit.c +++ b/ft_check/ft_isdigit.c @@ -6,11 +6,11 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/08/14 13:32:47 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:41 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:20:12 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ -#include "libft.h" +#include "ft_check.h" int ft_isdigit(int c) { diff --git a/ft_check/ft_islower.c b/ft_check/ft_islower.c index b2683e8..60078ac 100644 --- a/ft_check/ft_islower.c +++ b/ft_check/ft_islower.c @@ -6,11 +6,11 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/08/14 13:31:47 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:41 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:20:12 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ -#include "libft.h" +#include "ft_check.h" int ft_islower(int c) { diff --git a/ft_check/ft_isprint.c b/ft_check/ft_isprint.c index ff060c4..9f116ba 100644 --- a/ft_check/ft_isprint.c +++ b/ft_check/ft_isprint.c @@ -6,11 +6,11 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/08/15 12:17:32 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:41 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:20:12 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ -#include "libft.h" +#include "ft_check.h" int ft_isprint(int c) { diff --git a/ft_check/ft_isspace.c b/ft_check/ft_isspace.c index 5c82c9f..02948c1 100644 --- a/ft_check/ft_isspace.c +++ b/ft_check/ft_isspace.c @@ -6,11 +6,11 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/08/15 11:29:54 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:41 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:20:12 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ -#include "libft.h" +#include "ft_check.h" int ft_isspace(int c) { diff --git a/ft_check/ft_isupper.c b/ft_check/ft_isupper.c index dee0df7..2a426c2 100644 --- a/ft_check/ft_isupper.c +++ b/ft_check/ft_isupper.c @@ -6,11 +6,11 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/08/14 13:31:05 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:41 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:20:12 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ -#include "libft.h" +#include "ft_check.h" int ft_isupper(int c) { diff --git a/ft_conv/ft_atoi.c b/ft_conv/ft_atoi.c index a490b6d..ec7dbde 100644 --- a/ft_conv/ft_atoi.c +++ b/ft_conv/ft_atoi.c @@ -6,10 +6,11 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/06/13 13:44:39 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:41 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:54:24 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ +#include "ft_conv.h" #include "libft.h" int ft_atoi(const char *nptr) diff --git a/ft_conv/ft_ctoa.c b/ft_conv/ft_ctoa.c index d4f44c4..e10520f 100644 --- a/ft_conv/ft_ctoa.c +++ b/ft_conv/ft_ctoa.c @@ -6,12 +6,12 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/09/05 09:55:17 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:41 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:44:01 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ +#include "ft_conv.h" #include //malloc -#include "libft.h" char *ft_ctoa(char c) { diff --git a/ft_conv/ft_itoa.c b/ft_conv/ft_itoa.c index 92d890a..dbf4bf3 100644 --- a/ft_conv/ft_itoa.c +++ b/ft_conv/ft_itoa.c @@ -6,12 +6,12 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/08/15 15:58:10 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:41 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:44:23 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ +#include "ft_conv.h" #include -#include "libft.h" static unsigned int size_needed(int n) { diff --git a/ft_conv/ft_itoa_base.c b/ft_conv/ft_itoa_base.c index 0ed39be..935f217 100644 --- a/ft_conv/ft_itoa_base.c +++ b/ft_conv/ft_itoa_base.c @@ -6,13 +6,14 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/09/05 09:46:11 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:41 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:53:11 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ +#include "ft_conv.h" +#include "libft.h" #include //malloc #include //intmax_t -#include "libft.h" static intmax_t abs_max(intmax_t n) { diff --git a/ft_conv/ft_tolower.c b/ft_conv/ft_tolower.c index 7b1138b..b8a5b90 100644 --- a/ft_conv/ft_tolower.c +++ b/ft_conv/ft_tolower.c @@ -6,10 +6,11 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/08/15 10:36:54 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:41 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:53:39 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ +#include "ft_conv.h" #include "libft.h" int ft_tolower(int c) diff --git a/ft_conv/ft_toupper.c b/ft_conv/ft_toupper.c index c67e39b..48f7567 100644 --- a/ft_conv/ft_toupper.c +++ b/ft_conv/ft_toupper.c @@ -6,10 +6,11 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/08/15 10:35:21 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:41 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:54:01 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ +#include "ft_conv.h" #include "libft.h" int ft_toupper(int c) diff --git a/ft_conv/ft_uitoa_base.c b/ft_conv/ft_uitoa_base.c index ecd8448..4b29e05 100644 --- a/ft_conv/ft_uitoa_base.c +++ b/ft_conv/ft_uitoa_base.c @@ -6,13 +6,14 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/09/05 09:46:11 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:41 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:54:44 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ +#include "ft_conv.h" +#include "libft.h" #include //malloc #include //intmax_t -#include "libft.h" static int size_needed(uintmax_t n, size_t base_len) { diff --git a/ft_gen/ft_swap.c b/ft_gen/ft_swap.c index 534cfbe..edee772 100644 --- a/ft_gen/ft_swap.c +++ b/ft_gen/ft_swap.c @@ -6,11 +6,11 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/11/03 13:59:28 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:41 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:21:53 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ -#include "libft.h" +#include "ft_gen.h" void ft_swap(void **a, void **b) { diff --git a/ft_io/ft_printf/conversion.c b/ft_io/ft_printf/conversion.c index f1dfe95..f7e2010 100644 --- a/ft_io/ft_printf/conversion.c +++ b/ft_io/ft_printf/conversion.c @@ -6,14 +6,14 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/09/05 11:30:56 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:41 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:49:45 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ +#include "ft_printf.h" +#include "libft.h" #include // NULL, free #include //va* -#include "libft.h" -#include "ft_printf.h" static char *base_str_constr(char type, va_list *args) { diff --git a/ft_io/ft_printf/formatting.c b/ft_io/ft_printf/formatting.c index 7c6fbd1..8c60dcb 100644 --- a/ft_io/ft_printf/formatting.c +++ b/ft_io/ft_printf/formatting.c @@ -6,14 +6,14 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/09/05 11:28:21 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:41 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:51:30 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ +#include "ft_printf.h" +#include "libft.h" #include // NULL, free #include -#include "libft.h" -#include "ft_printf.h" static int starts_with_zero(t_to_print *tp, t_conv conv) { diff --git a/ft_io/ft_printf/ft_printf.c b/ft_io/ft_printf/ft_printf.c index 35a4d72..9d056d9 100644 --- a/ft_io/ft_printf/ft_printf.c +++ b/ft_io/ft_printf/ft_printf.c @@ -6,14 +6,13 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/08/17 09:14:21 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:41 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:41:36 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ +#include "ft_printf.h" #include // va_* #include // write -#include "libft.h" -#include "ft_printf.h" int print_ordinary(const char **s) { diff --git a/ft_io/ft_printf/padding.c b/ft_io/ft_printf/padding.c index 11eb007..057cd14 100644 --- a/ft_io/ft_printf/padding.c +++ b/ft_io/ft_printf/padding.c @@ -6,13 +6,13 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/09/05 11:25:46 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:41 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:50:15 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ -#include //malloc -#include "libft.h" #include "ft_printf.h" +#include "libft.h" +#include //malloc static char *repeat_char(char c, int n) { diff --git a/ft_io/ft_printf/parsing.c b/ft_io/ft_printf/parsing.c index db35efd..660fcc0 100644 --- a/ft_io/ft_printf/parsing.c +++ b/ft_io/ft_printf/parsing.c @@ -6,13 +6,13 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/09/05 10:50:54 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:41 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:50:30 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ -#include // va_* -#include "libft.h" #include "ft_printf.h" +#include "libft.h" +#include // va_* static t_flags parse_flags(const char **format) { diff --git a/ft_io/ft_putchar_fd.c b/ft_io/ft_putchar_fd.c index 91416da..dadcedf 100644 --- a/ft_io/ft_putchar_fd.c +++ b/ft_io/ft_putchar_fd.c @@ -6,12 +6,12 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/08/15 16:20:18 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:41 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:42:41 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ +#include "ft_io.h" #include -#include "libft.h" void ft_putchar_fd(char c, int fd) { diff --git a/ft_io/ft_putendl_fd.c b/ft_io/ft_putendl_fd.c index 43291da..5e7bff9 100644 --- a/ft_io/ft_putendl_fd.c +++ b/ft_io/ft_putendl_fd.c @@ -6,12 +6,12 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/08/15 16:25:41 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:12:45 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:40:38 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ +#include "ft_io.h" #include -#include "libft.h" void ft_putendl_fd(char *s, int fd) { diff --git a/ft_io/ft_putnbr_fd.c b/ft_io/ft_putnbr_fd.c index 9e558ca..1b510dd 100644 --- a/ft_io/ft_putnbr_fd.c +++ b/ft_io/ft_putnbr_fd.c @@ -6,12 +6,12 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/08/15 16:27:25 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:41 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:40:46 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ +#include "ft_io.h" #include -#include "libft.h" void ft_putnbr_fd(int n, int fd) { diff --git a/ft_io/ft_putstr_fd.c b/ft_io/ft_putstr_fd.c index 1072548..812abb2 100644 --- a/ft_io/ft_putstr_fd.c +++ b/ft_io/ft_putstr_fd.c @@ -6,12 +6,13 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/08/15 16:23:36 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:41 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:52:36 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ -#include +#include "ft_io.h" #include "libft.h" +#include void ft_putstr_fd(char *s, int fd) { diff --git a/ft_io/get_next_line.c b/ft_io/get_next_line.c index aa443dc..dcc2579 100644 --- a/ft_io/get_next_line.c +++ b/ft_io/get_next_line.c @@ -6,14 +6,15 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/08/28 00:01:15 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:41 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:52:02 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ -#include -#include #include "get_next_line.h" +#include "ft_io.h" #include "libft.h" +#include +#include t_list *new_ft_node(int fd) { diff --git a/ft_lst/ft_lst_at.c b/ft_lst/ft_lst_at.c index b5fc6ad..08836f3 100644 --- a/ft_lst/ft_lst_at.c +++ b/ft_lst/ft_lst_at.c @@ -6,11 +6,11 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/06/28 14:19:21 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:44 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:22:53 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ -#include "libft.h" +#include "ft_lst.h" t_list *ft_lst_at(t_list *lst, unsigned int i) { diff --git a/ft_lst/ft_lst_find.c b/ft_lst/ft_lst_find.c index 582949a..86a8ca0 100644 --- a/ft_lst/ft_lst_find.c +++ b/ft_lst/ft_lst_find.c @@ -6,12 +6,12 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/06/28 14:47:42 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:44 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:22:53 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ #include -#include "libft.h" +#include "ft_lst.h" t_list *ft_lst_find(t_list *lst, void *content_ref, int (*cmp)()) { diff --git a/ft_lst/ft_lst_foreach_if.c b/ft_lst/ft_lst_foreach_if.c index f74480b..d333fe2 100644 --- a/ft_lst/ft_lst_foreach_if.c +++ b/ft_lst/ft_lst_foreach_if.c @@ -6,11 +6,11 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/06/28 14:42:33 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:41 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:22:53 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ -#include "libft.h" +#include "ft_lst.h" void ft_lst_foreach_if(t_list *lst, void (*f)(void *), void *content_ref, int (*cmp)()) diff --git a/ft_lst/ft_lst_merge.c b/ft_lst/ft_lst_merge.c index 401e710..f79a004 100644 --- a/ft_lst/ft_lst_merge.c +++ b/ft_lst/ft_lst_merge.c @@ -6,11 +6,11 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/06/28 15:09:00 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:44 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:22:53 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ -#include "libft.h" +#include "ft_lst.h" void ft_lst_merge(t_list **lst1, t_list *lst2) { diff --git a/ft_lst/ft_lst_remove_if.c b/ft_lst/ft_lst_remove_if.c index c6d81aa..64bd2bd 100644 --- a/ft_lst/ft_lst_remove_if.c +++ b/ft_lst/ft_lst_remove_if.c @@ -6,12 +6,12 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/06/28 14:49:53 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:44 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:22:53 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ #include -#include "libft.h" +#include "ft_lst.h" static void remove_next_el(t_list *prev, t_list **cur, void (*free_fct)(void *)) { diff --git a/ft_lst/ft_lst_reverse.c b/ft_lst/ft_lst_reverse.c index e5b93d2..a77dad8 100644 --- a/ft_lst/ft_lst_reverse.c +++ b/ft_lst/ft_lst_reverse.c @@ -6,12 +6,12 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/06/28 14:22:47 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:41 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:22:53 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ #include -#include "libft.h" +#include "ft_lst.h" void ft_lst_reverse(t_list **lst) { diff --git a/ft_lst/ft_lst_sort.c b/ft_lst/ft_lst_sort.c index d2bca88..40f3499 100644 --- a/ft_lst/ft_lst_sort.c +++ b/ft_lst/ft_lst_sort.c @@ -6,10 +6,11 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/06/28 15:13:29 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:44 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:55:45 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ +#include "ft_lst.h" #include "libft.h" static void ft_max_to_end(t_list *lst, int (*cmp)(), int size) diff --git a/ft_lst/ft_lst_sorted_insert.c b/ft_lst/ft_lst_sorted_insert.c index 48de0d4..5705a3f 100644 --- a/ft_lst/ft_lst_sorted_insert.c +++ b/ft_lst/ft_lst_sorted_insert.c @@ -6,12 +6,12 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/06/28 15:53:26 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:44 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:22:53 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ #include -#include "libft.h" +#include "ft_lst.h" static void insert_after(t_list *prev, t_list *new) { diff --git a/ft_lst/ft_lst_sorted_merge.c b/ft_lst/ft_lst_sorted_merge.c index 39d7447..f80caa7 100644 --- a/ft_lst/ft_lst_sorted_merge.c +++ b/ft_lst/ft_lst_sorted_merge.c @@ -6,10 +6,11 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/06/28 17:13:15 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:44 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:55:15 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ +#include "ft_lst.h" #include "libft.h" void ft_lst_sorted_merge(t_list **lst1, t_list *lst2, int (*cmp)()) diff --git a/ft_lst/ft_lstadd_back.c b/ft_lst/ft_lstadd_back.c index 283f930..f127224 100644 --- a/ft_lst/ft_lstadd_back.c +++ b/ft_lst/ft_lstadd_back.c @@ -6,12 +6,12 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/08/16 13:33:28 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:44 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:22:53 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ #include -#include "libft.h" +#include "ft_lst.h" void ft_lstadd_back(t_list **lst, t_list *new) { diff --git a/ft_lst/ft_lstadd_front.c b/ft_lst/ft_lstadd_front.c index 90b09fd..55ca676 100644 --- a/ft_lst/ft_lstadd_front.c +++ b/ft_lst/ft_lstadd_front.c @@ -6,11 +6,11 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/08/16 13:26:20 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:44 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:22:53 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ -#include "libft.h" +#include "ft_lst.h" void ft_lstadd_front(t_list **lst, t_list *new) { diff --git a/ft_lst/ft_lstclear.c b/ft_lst/ft_lstclear.c index 1bc49a7..a3b83a6 100644 --- a/ft_lst/ft_lstclear.c +++ b/ft_lst/ft_lstclear.c @@ -6,12 +6,12 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/08/16 13:45:28 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:44 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:22:53 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ #include -#include "libft.h" +#include "ft_lst.h" void ft_lstclear(t_list **lst, void (*del)(void *)) { diff --git a/ft_lst/ft_lstdelone.c b/ft_lst/ft_lstdelone.c index bc28346..35289e8 100644 --- a/ft_lst/ft_lstdelone.c +++ b/ft_lst/ft_lstdelone.c @@ -6,12 +6,12 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/08/16 13:43:02 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:41 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:22:53 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ #include -#include "libft.h" +#include "ft_lst.h" void ft_lstdelone(t_list *lst, void (*del)(void *)) { diff --git a/ft_lst/ft_lstiter.c b/ft_lst/ft_lstiter.c index 4c71b7b..9960fe5 100644 --- a/ft_lst/ft_lstiter.c +++ b/ft_lst/ft_lstiter.c @@ -6,11 +6,11 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/08/16 13:50:31 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:44 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:22:53 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ -#include "libft.h" +#include "ft_lst.h" void ft_lstiter(t_list *lst, void (*f)(void *)) { diff --git a/ft_lst/ft_lstlast.c b/ft_lst/ft_lstlast.c index c34b51f..d827d38 100644 --- a/ft_lst/ft_lstlast.c +++ b/ft_lst/ft_lstlast.c @@ -6,12 +6,12 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/08/16 13:31:01 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:44 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:22:53 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ #include -#include "libft.h" +#include "ft_lst.h" t_list *ft_lstlast(t_list *lst) { diff --git a/ft_lst/ft_lstmap.c b/ft_lst/ft_lstmap.c index 709167e..15efc8e 100644 --- a/ft_lst/ft_lstmap.c +++ b/ft_lst/ft_lstmap.c @@ -6,12 +6,12 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/08/16 13:51:57 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:44 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:22:53 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ #include -#include "libft.h" +#include "ft_lst.h" static t_list *first_el(t_list *lst, void *(*f)(void *), void (*del)(void *)) { diff --git a/ft_lst/ft_lstnew.c b/ft_lst/ft_lstnew.c index 3a4af7e..b902847 100644 --- a/ft_lst/ft_lstnew.c +++ b/ft_lst/ft_lstnew.c @@ -6,12 +6,12 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/08/16 13:23:00 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:44 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:22:53 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ #include -#include "libft.h" +#include "ft_lst.h" t_list *ft_lstnew(void *content) { diff --git a/ft_lst/ft_lstsize.c b/ft_lst/ft_lstsize.c index ad6d966..106602e 100644 --- a/ft_lst/ft_lstsize.c +++ b/ft_lst/ft_lstsize.c @@ -6,12 +6,12 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/08/16 13:28:58 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:44 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:22:53 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ #include -#include "libft.h" +#include "ft_lst.h" int ft_lstsize(t_list *lst) { diff --git a/ft_math/ft_abs.c b/ft_math/ft_abs.c index 12cd7d2..5fc5552 100644 --- a/ft_math/ft_abs.c +++ b/ft_math/ft_abs.c @@ -6,11 +6,11 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/09/05 09:48:21 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:41 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:23:57 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ -#include "libft.h" +#include "ft_math.h" int ft_abs(int n) { diff --git a/ft_mem/ft_bzero.c b/ft_mem/ft_bzero.c index a980886..048354d 100644 --- a/ft_mem/ft_bzero.c +++ b/ft_mem/ft_bzero.c @@ -6,12 +6,12 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/08/14 13:38:08 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:44 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:24:17 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ #include -#include "libft.h" +#include "ft_mem.h" void ft_bzero(void *s, size_t n) { diff --git a/ft_mem/ft_calloc.c b/ft_mem/ft_calloc.c index 88cf877..6e4a0fa 100644 --- a/ft_mem/ft_calloc.c +++ b/ft_mem/ft_calloc.c @@ -6,7 +6,7 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/08/15 11:34:52 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:44 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:24:17 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ @@ -20,7 +20,7 @@ } */ #include // for malloc -#include "libft.h" +#include "ft_mem.h" void *ft_calloc(size_t nmemb, size_t size) { diff --git a/ft_mem/ft_memchr.c b/ft_mem/ft_memchr.c index b1fa850..ec84ed5 100644 --- a/ft_mem/ft_memchr.c +++ b/ft_mem/ft_memchr.c @@ -6,13 +6,13 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/08/15 10:56:53 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:44 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:24:17 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ #include #include -#include "libft.h" +#include "ft_mem.h" void *ft_memchr(const void *s, int c, size_t n) { diff --git a/ft_mem/ft_memcmp.c b/ft_mem/ft_memcmp.c index f5e07a9..f51279b 100644 --- a/ft_mem/ft_memcmp.c +++ b/ft_mem/ft_memcmp.c @@ -6,12 +6,12 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/08/15 11:06:15 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:44 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:24:17 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ #include -#include "libft.h" +#include "ft_mem.h" int ft_memcmp(const void *s1, const void *s2, size_t n) { diff --git a/ft_mem/ft_memcpy.c b/ft_mem/ft_memcpy.c index eba3dda..fd58af4 100644 --- a/ft_mem/ft_memcpy.c +++ b/ft_mem/ft_memcpy.c @@ -6,13 +6,13 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/08/14 13:35:59 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:44 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:24:17 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ #include #include -#include "libft.h" +#include "ft_mem.h" void *ft_memcpy(void *dest, const void *src, size_t n) { diff --git a/ft_mem/ft_memmove.c b/ft_mem/ft_memmove.c index 8955787..ffd024b 100644 --- a/ft_mem/ft_memmove.c +++ b/ft_mem/ft_memmove.c @@ -6,12 +6,12 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/08/14 13:36:32 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:44 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:24:17 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ #include -#include "libft.h" +#include "ft_mem.h" void *ft_memmove(void *dest, const void *src, size_t n) { diff --git a/ft_mem/ft_memset.c b/ft_mem/ft_memset.c index 487d9ea..30ce07a 100644 --- a/ft_mem/ft_memset.c +++ b/ft_mem/ft_memset.c @@ -6,12 +6,12 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/08/14 13:13:22 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:44 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:24:17 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ #include -#include "libft.h" +#include "ft_mem.h" void *ft_memset(void *s, int c, size_t n) { diff --git a/ft_str/ft_split.c b/ft_str/ft_split.c index 4cc3fcf..710248d 100644 --- a/ft_str/ft_split.c +++ b/ft_str/ft_split.c @@ -6,12 +6,12 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/08/15 15:30:26 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:41 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:24:36 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ #include -#include "libft.h" +#include "ft_str.h" static void free_str_array(char **arr) { diff --git a/ft_str/ft_strchr.c b/ft_str/ft_strchr.c index 9ad3e14..6a4e3b6 100644 --- a/ft_str/ft_strchr.c +++ b/ft_str/ft_strchr.c @@ -6,12 +6,12 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/08/15 10:41:10 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:41 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:44:56 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ +#include "ft_str.h" #include -#include "libft.h" char *ft_strchr(const char *s, int c) { diff --git a/ft_str/ft_strdup.c b/ft_str/ft_strdup.c index 996f9ea..6c725f4 100644 --- a/ft_str/ft_strdup.c +++ b/ft_str/ft_strdup.c @@ -6,12 +6,12 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/06/17 13:33:49 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:41 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:45:31 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ +#include "ft_str.h" #include // For the malloc function -#include "libft.h" char *ft_strdup(const char *s) { diff --git a/ft_str/ft_striteri.c b/ft_str/ft_striteri.c index 0cc1387..ac2bce2 100644 --- a/ft_str/ft_striteri.c +++ b/ft_str/ft_striteri.c @@ -6,12 +6,12 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/08/15 16:18:09 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:41 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:45:55 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ +#include "ft_str.h" #include -#include "libft.h" void ft_striteri(char *s, void (*f)(unsigned int, char *)) { diff --git a/ft_str/ft_strjoin.c b/ft_str/ft_strjoin.c index 03285be..39ff7e9 100644 --- a/ft_str/ft_strjoin.c +++ b/ft_str/ft_strjoin.c @@ -6,12 +6,12 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/08/15 15:04:10 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:41 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:24:36 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ #include -#include "libft.h" +#include "ft_str.h" char *ft_strjoin(const char *s1, const char *s2) { diff --git a/ft_str/ft_strlcat.c b/ft_str/ft_strlcat.c index f27d50a..ba6de01 100644 --- a/ft_str/ft_strlcat.c +++ b/ft_str/ft_strlcat.c @@ -6,13 +6,13 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/06/12 17:32:33 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:41 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:24:36 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ #include #include -#include "libft.h" +#include "ft_str.h" size_t ft_strlcat(char *dst, const char *src, size_t size) { diff --git a/ft_str/ft_strlcpy.c b/ft_str/ft_strlcpy.c index 04cc7ef..cae2832 100644 --- a/ft_str/ft_strlcpy.c +++ b/ft_str/ft_strlcpy.c @@ -6,12 +6,12 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/06/11 17:28:43 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:41 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:45:36 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ +#include "ft_str.h" #include -#include "libft.h" size_t ft_strlcpy(char *dst, const char *src, size_t size) { diff --git a/ft_str/ft_strlen.c b/ft_str/ft_strlen.c index baaa96b..498c745 100644 --- a/ft_str/ft_strlen.c +++ b/ft_str/ft_strlen.c @@ -6,12 +6,12 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/08/14 13:40:59 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:41 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:45:21 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ +#include "ft_str.h" #include -#include "libft.h" size_t ft_strlen(const char *s) { diff --git a/ft_str/ft_strmapi.c b/ft_str/ft_strmapi.c index 203265d..cb44e80 100644 --- a/ft_str/ft_strmapi.c +++ b/ft_str/ft_strmapi.c @@ -6,12 +6,12 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/08/15 16:12:48 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:41 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:24:36 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ #include -#include "libft.h" +#include "ft_str.h" char *ft_strmapi(const char *s, char (*f)(unsigned int, char)) { diff --git a/ft_str/ft_strncat_alloc.c b/ft_str/ft_strncat_alloc.c index d5d61f8..45d2cfa 100644 --- a/ft_str/ft_strncat_alloc.c +++ b/ft_str/ft_strncat_alloc.c @@ -6,12 +6,13 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/09/11 13:36:53 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:41 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:48:57 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ -#include // malloc etc. +#include "ft_str.h" #include "libft.h" +#include // malloc etc. /* Functions like ft_strncat but reallocates dest to make sure it is large enough */ diff --git a/ft_str/ft_strncmp.c b/ft_str/ft_strncmp.c index fa13a55..ad5f582 100644 --- a/ft_str/ft_strncmp.c +++ b/ft_str/ft_strncmp.c @@ -6,12 +6,12 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/06/12 17:02:07 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:41 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:44:40 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ +#include "ft_str.h" #include -#include "libft.h" int ft_strncmp(const char *s1, const char *s2, size_t n) { diff --git a/ft_str/ft_strndup.c b/ft_str/ft_strndup.c index cd6479b..03608ca 100644 --- a/ft_str/ft_strndup.c +++ b/ft_str/ft_strndup.c @@ -6,12 +6,12 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/08/24 09:18:49 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:41 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:44:47 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ +#include "ft_str.h" #include // For the malloc function -#include "libft.h" char *ft_strndup(const char *s, size_t n) { diff --git a/ft_str/ft_strnstr.c b/ft_str/ft_strnstr.c index a7b37e0..afb9326 100644 --- a/ft_str/ft_strnstr.c +++ b/ft_str/ft_strnstr.c @@ -6,13 +6,13 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/06/12 17:15:34 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:41 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:45:47 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ +#include "ft_str.h" #include // For the NULL pointer #include -#include "libft.h" char *ft_strnstr(const char *big, const char *little, size_t len) { diff --git a/ft_str/ft_strrchr.c b/ft_str/ft_strrchr.c index 9b83494..1afc2c1 100644 --- a/ft_str/ft_strrchr.c +++ b/ft_str/ft_strrchr.c @@ -6,12 +6,12 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/08/15 10:46:09 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:41 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:24:36 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ #include -#include "libft.h" +#include "ft_str.h" char *ft_strrchr(const char *s, int c) { diff --git a/ft_str/ft_strtrim.c b/ft_str/ft_strtrim.c index 76fd5fd..6494bd3 100644 --- a/ft_str/ft_strtrim.c +++ b/ft_str/ft_strtrim.c @@ -6,13 +6,13 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/08/15 15:11:52 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:41 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:45:03 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ +#include "ft_str.h" #include #include -#include "libft.h" static size_t size_needed(const char *s1, const char *set) { diff --git a/ft_str/ft_substr.c b/ft_str/ft_substr.c index 140fb95..ededd6a 100644 --- a/ft_str/ft_substr.c +++ b/ft_str/ft_substr.c @@ -6,12 +6,12 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/08/15 15:04:24 by ljiriste #+# #+# */ -/* Updated: 2023/12/09 15:13:41 by ljiriste ### ########.fr */ +/* Updated: 2023/12/09 15:24:36 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ #include -#include "libft.h" +#include "ft_str.h" char *ft_substr(const char *s, unsigned int start, size_t len) {