From 0d58f8cf64a0a7ea0bff97bf1ea4844e832abcf3 Mon Sep 17 00:00:00 2001 From: Raphael Date: Fri, 19 Sep 2025 16:09:44 +0200 Subject: [PATCH] feat: adding the t_func type - t_func type is for pointer function propose --- includes/ft_printf.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/includes/ft_printf.h b/includes/ft_printf.h index b3f5c45..81874d6 100644 --- a/includes/ft_printf.h +++ b/includes/ft_printf.h @@ -17,7 +17,13 @@ # include # include +typedef int (*t_func)(va_list, int fd); +typedef struct s_format +{ + char character; + t_func function; +} t_format; size_t ft_strlen(const char *str); void ft_putnbr_base(int fd, u_int64_t nbr, char *base, int *to_ret);