-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.h
More file actions
77 lines (72 loc) · 2.57 KB
/
Copy pathheader.h
File metadata and controls
77 lines (72 loc) · 2.57 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
/* ************************************************************************** */
/* */
/* :::::::: */
/* header.h :+: :+: */
/* +:+ */
/* By: rvan-sch <[email protected]> +#+ */
/* +#+ */
/* Created: 2020/02/17 19:48:43 by rvan-sch #+# #+# */
/* Updated: 2020/02/17 19:49:32 by rvan-sch ######## odam.nl */
/* */
/* ************************************************************************** */
#ifndef HEADER_H
# define HEADER_H
# include <stdarg.h>
# include <unistd.h>
typedef struct s_flag
{
short int dot;
short int dash;
short int zero;
short int space;
short int hash;
short int mod_el;
short int mod_ha;
short int sign;
int width;
int prec;
} t_flag;
typedef struct s_conv
{
short int c;
short int s;
short int p;
short int d;
short int i;
short int u;
short int x;
short int big_x;
short int n;
short int prc;
short int f;
} t_conv;
void print_digit_other(t_flag *flag, t_conv *conv, int d_len,
unsigned long long d);
void print_digit_set_edges(t_flag *flag, t_conv *conv,
unsigned long long d);
int ft_isconv(t_conv *conv, char c);
int ft_printf(const char *format, ...);
int ft_putchar_amount(char c, int size);
int get_flag_all(t_flag *flag, const char *format,
va_list *arg, int i);
int ft_len_hex(unsigned long long d);
int ft_isdigit(int c);
int ft_abs(int n);
int ft_len_dec(unsigned long long d);
size_t ft_strlen(const char *s);
void ft_conv_d(va_list *arg, t_flag *flag, t_conv *conv);
void ft_clear_flags(t_flag *flag);
void ft_clear_isconv(t_conv *conv);
void ft_conv_c(va_list *arg, t_flag *flag);
void ft_conv_s(va_list *arg, t_flag *flag);
void ft_conv_xup(va_list *arg, t_flag *flag, t_conv *conv);
void ft_putchar(int c);
void ft_putchars_str(char c, int amount, char *s);
void ft_putnbr_hex(unsigned long n, t_conv *conv);
void ft_putnbr_ull(unsigned long long n);
void ft_putstr(char *s);
void ft_putstr_chars(char *s, char c, int amount);
void print_char(t_flag *flag, int c);
void print_digit(t_flag *flag, t_conv *conv, unsigned long long d);
void print_str(t_flag *flag, char *s);
#endif