Bonus preparartion
This commit is contained in:
38
include/ft_printf_bonus.h
Normal file
38
include/ft_printf_bonus.h
Normal 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
|
||||
Reference in New Issue
Block a user