-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_printf.h
65 lines (55 loc) · 1.73 KB
/
ft_printf.h
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_printf.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: lrocca <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/01/27 18:50:12 by lrocca #+# #+# */
/* Updated: 2021/02/11 12:37:01 by lrocca ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef FT_PRINTF_H
# define FT_PRINTF_H
# include <stdarg.h>
# include "libft/libft.h"
# define BASE10 "0123456789"
# define BASE16 "0123456789abcdef"
# define BASE16X "0123456789ABCDEF"
int ft_printf(const char *f, ...);
void flags(void);
int p_sign(void);
int p_space(void);
int p_prefix(void);
int types(void);
int type_d(void);
int type_u(void);
int type_x(void);
int type_xx(void);
int type_c(void);
int type_s(void);
int type_p(void);
int type_n(void);
int type_percent(void);
int print(void);
int a_sign(void);
int a_space(void);
typedef struct s_opt
{
int justify;
char padding;
int width;
int precision;
int null;
int negative;
int sign;
int space;
int prefix;
int printed;
char type;
char *buffer;
va_list args;
const char *format;
} t_opt;
extern t_opt g_var;
#endif