Bonus preparartion

This commit is contained in:
David Gailleton
2025-11-19 15:14:53 +01:00
parent 836eea81e1
commit 66878549eb
12 changed files with 297 additions and 122 deletions

38
include/ft_printf_bonus.h Normal file
View File

@@ -0,0 +1,38 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_printf_bonus.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: dgaillet <dgaillet@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/11/17 10:52:23 by dgaillet #+# #+# */
/* Updated: 2025/11/19 13:30:52 by dgaillet ### ########lyon.fr */
/* */
/* ************************************************************************** */
#ifndef FT_PRINTF_BONUS_H
# define FT_PRINTF_BONUS_H
typedef struct s_arg
{
char arg;
int minus;
int zero;
int dot;
int hash;
int space;
int plus;
} t_arg;
int ft_printf(const char *first_arg, ...);
int ft_putnbr_base(unsigned long long nbr, char *base, int base_size);
int print_char(char c);
int print_str(char *str);
int print_pointer(unsigned long long p);
int print_number(int nbr);
int print_unsigned(unsigned int nbr);
int print_hex(unsigned long long p, int upper);
#endif