-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_printf.h
More file actions
39 lines (34 loc) · 849 Bytes
/
ft_printf.h
File metadata and controls
39 lines (34 loc) · 849 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef FT_PRINTF_H
# define FT_PRINTF_H
# include <stdarg.h>
# include "libft/libft.h"
# include <stdlib.h>
# include <unistd.h>
# define B_DEC "0123456789"
# define B_HEXA_LO "0123456789abcdef"
# define B_HEXA_UP "0123456789ABCDEF"
typedef struct s_option
{
int space;
int zero;
int index;
int count;
int wd;
int dot;
int precision;
int num_n;
int fl_minus;
int fl_zero;
int fl_zero_p;
int fl_sp;
int fl_hash;
int fl_plus;
} t_option;
int ft_printf(const char *format, ...);
void print_string(va_list ap, t_option *option);
void check_options(const char *format, va_list ap, t_option *option);
void print_char(va_list ap, t_option *option);
void print_ptr(va_list ap, t_option *option);
void print_integer(char c, va_list ap, t_option *option);
void print_porcent(t_option *option);
#endif