-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathd2h.h
68 lines (56 loc) · 2.32 KB
/
d2h.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
66
67
68
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* d2h.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: nde-maes <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/02/11 17:34:27 by nde-maes #+# #+# */
/* Updated: 2019/02/25 12:12:18 by nde-maes ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef FT_D2H_H
# define FT_D2H_H
# include "ft_printf.h"
/*
** This is a disaster of conciseness.
*/
t_d2h g_d2h[35] =
{
{'s', NONE, &str_dir_to_str},
{'p', NONE, &address_dir_to_str},
{'d', hh, &signed_char_dir_to_str},
{'d', h, &signed_short_dir_to_str},
{'d', NONE, &signed_int_dir_to_str},
{'d', l, &signed_long_dir_to_str},
{'d', ll, &signed_long_long_dir_to_str},
{'i', hh, &signed_char_dir_to_str},
{'i', h, &signed_short_dir_to_str},
{'i', NONE, &signed_int_dir_to_str},
{'i', l, &signed_long_dir_to_str},
{'i', ll, &signed_long_long_dir_to_str},
{'u', hh, &unsigned_char_dir_to_str},
{'u', h, &unsigned_short_dir_to_str},
{'u', NONE, &unsigned_int_dir_to_str},
{'u', l, &unsigned_long_dir_to_str},
{'u', ll, &unsigned_long_long_dir_to_str},
{'o', hh, &unsigned_char_dir_to_str},
{'o', h, &unsigned_short_dir_to_str},
{'o', NONE, &unsigned_int_dir_to_str},
{'o', l, &unsigned_long_dir_to_str},
{'o', ll, &unsigned_long_long_dir_to_str},
{'x', hh, &unsigned_char_dir_to_str},
{'x', h, &unsigned_short_dir_to_str},
{'x', NONE, &unsigned_int_dir_to_str},
{'x', l, &unsigned_long_dir_to_str},
{'x', ll, &unsigned_long_long_dir_to_str},
{'X', hh, &unsigned_char_dir_to_str},
{'X', h, &unsigned_short_dir_to_str},
{'X', NONE, &unsigned_int_dir_to_str},
{'X', l, &unsigned_long_dir_to_str},
{'X', ll, &unsigned_long_long_dir_to_str},
{'f', NONE, &float_dir_to_str},
{'f', l, &float_dir_to_str},
{'f', L, &float_dir_to_str},
};
#endif