Updated Libft to prevent a leak.
authorLukas Jiriste <ljiriste@student.42prague.com>
Wed, 27 Sep 2023 13:53:44 +0000 (15:53 +0200)
committerLukas Jiriste <ljiriste@student.42prague.com>
Wed, 27 Sep 2023 13:53:44 +0000 (15:53 +0200)
Added bonus target to Makefile.
Changed formatting of conversion.c to comply with the Norm.

Libft
Makefile
conversion.c

diff --git a/Libft b/Libft
index c87057b8ea8c228b81aeddf70f9836252217b771..5cda9c641f76695f327eec126dfb8e9ed91f7792 160000 (submodule)
--- a/Libft
+++ b/Libft
@@ -1 +1 @@
-Subproject commit c87057b8ea8c228b81aeddf70f9836252217b771
+Subproject commit 5cda9c641f76695f327eec126dfb8e9ed91f7792
index 4c8d68d8e4dd92b4aaf84894aecf6d8fe5554359..23ac4cbc03e07a9ec90762e5525df312109e00b3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -35,3 +35,5 @@ fclean : clean
 
 re : fclean
        $(MAKE) all
+
+bonus : all
index b1ee939876bd897430fc57f814be1362b0a9dfa3..26a1149d97e9ca3eca41c495a06cd9e5938eaa24 100644 (file)
@@ -6,7 +6,7 @@
 /*   By: ljiriste <marvin@42.fr>                    +#+  +:+       +#+        */
 /*                                                +#+#+#+#+#+   +#+           */
 /*   Created: 2023/09/05 11:30:56 by ljiriste          #+#    #+#             */
-/*   Updated: 2023/09/15 18:52:33 by ljiriste         ###   ########.fr       */
+/*   Updated: 2023/09/27 15:15:22 by ljiriste         ###   ########.fr       */
 /*                                                                            */
 /* ************************************************************************** */
 
@@ -35,7 +35,8 @@ static char   *base_str_constr(char type, va_list *args)
        else if (type == 's')
                res = ft_strdup(va_arg(*args, char *));
        else if (type == 'p')
-               res = ft_uitoa_base((uintptr_t)va_arg(*args, void *), "0123456789abcdef");
+               res = ft_uitoa_base((uintptr_t)va_arg(*args, void *),
+                               "0123456789abcdef");
        return (res);
 }