diff --git a/includes/libft.h b/includes/libft.h index 6618cc8..6e1c16a 100644 --- a/includes/libft.h +++ b/includes/libft.h @@ -6,7 +6,7 @@ /* By: myeow <myeow@student.42kl.edu.my> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/02/15 16:11:56 by myeow #+# #+# */ -/* Updated: 2024/04/05 20:29:48 by myeow ### ########.fr */ +/* Updated: 2024/04/06 23:04:40 by myeow ### ########.fr */ /* */ /* ************************************************************************** */ diff --git a/srcs/err_utils/ft_error.c b/srcs/err_utils/ft_error.c index eff42e5..0a8df17 100644 --- a/srcs/err_utils/ft_error.c +++ b/srcs/err_utils/ft_error.c @@ -6,18 +6,22 @@ /* By: myeow <myeow@student.42kl.edu.my> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/03/28 18:51:00 by myeow #+# #+# */ -/* Updated: 2024/04/01 17:32:07 by myeow ### ########.fr */ +/* Updated: 2024/04/07 01:36:45 by myeow ### ########.fr */ /* */ /* ************************************************************************** */ #include "../../includes/ft_error.h" #include "../../includes/libft.h" +/* + * ft_putstr_fd("Error: ", 2); + * ft_putnbr_fd(e, 2); + * ft_putchar_fd('\n', 2); + */ int ft_error(t_error e) { if (e == OK) return (OK); - ft_putstr_fd("Error: ", 2); - ft_putnbr_fd(e, 2); + ft_putendl_fd("Error", 2); return (e); } diff --git a/srcs/lst_utils/ft_lstclear.c b/srcs/lst_utils/ft_lstclear.c index 970fa87..a9025f5 100644 --- a/srcs/lst_utils/ft_lstclear.c +++ b/srcs/lst_utils/ft_lstclear.c @@ -6,7 +6,7 @@ /* By: myeow <myeow@student.42kl.edu.my> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/02/20 21:29:46 by myeow #+# #+# */ -/* Updated: 2024/03/28 20:43:02 by myeow ### ########.fr */ +/* Updated: 2024/04/06 00:29:54 by myeow ### ########.fr */ /* */ /* ************************************************************************** */ diff --git a/srcs/mem_utils/ft_memclear.c b/srcs/mem_utils/ft_memclear.c index 681aa37..0ef3ced 100644 --- a/srcs/mem_utils/ft_memclear.c +++ b/srcs/mem_utils/ft_memclear.c @@ -6,11 +6,12 @@ /* By: myeow <myeow@student.42kl.edu.my> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/04/05 20:26:45 by myeow #+# #+# */ -/* Updated: 2024/04/05 20:30:52 by myeow ### ########.fr */ +/* Updated: 2024/04/06 00:30:10 by myeow ### ########.fr */ /* */ /* ************************************************************************** */ #include <stdlib.h> +#include <stdio.h> /* * Pair this with ft_lstclear. diff --git a/srcs/str_utils/ft_free_ft_split.c b/srcs/str_utils/ft_free_ft_split.c index d57488f..732741f 100644 --- a/srcs/str_utils/ft_free_ft_split.c +++ b/srcs/str_utils/ft_free_ft_split.c @@ -6,11 +6,12 @@ /* By: myeow <myeow@student.42kl.edu.my> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/04/05 18:59:36 by myeow #+# #+# */ -/* Updated: 2024/04/05 19:02:20 by myeow ### ########.fr */ +/* Updated: 2024/04/06 00:26:45 by myeow ### ########.fr */ /* */ /* ************************************************************************** */ #include <stdlib.h> +#include <stdio.h> void ft_free_ft_split(char **str_array) { diff --git a/srcs/str_utils/ft_strendptr.c b/srcs/str_utils/ft_strendptr.c index c96882e..f48c777 100644 --- a/srcs/str_utils/ft_strendptr.c +++ b/srcs/str_utils/ft_strendptr.c @@ -6,7 +6,7 @@ /* By: myeow <myeow@student.42kl.edu.my> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/02/17 23:03:13 by myeow #+# #+# */ -/* Updated: 2024/03/28 19:31:38 by myeow ### ########.fr */ +/* Updated: 2024/04/06 23:04:21 by myeow ### ########.fr */ /* */ /* ************************************************************************** */