-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbasic_struct.h
More file actions
61 lines (54 loc) · 1.62 KB
/
basic_struct.h
File metadata and controls
61 lines (54 loc) · 1.62 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* basic_struct.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: seoykim <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/07/19 05:30:00 by seoykim #+# #+# */
/* Updated: 2025/07/19 05:30:00 by seoykim ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef BASIC_STRUCT_H
# define BASIC_STRUCT_H
# include <stdint.h>
# include "libft.h"
# include "handle_error.h"
# include <stddef.h>
# define HASH 1
# define ZERO 2
# define MINUS 4
# define SPACE 8
# define PLUS 16
typedef union u_data
{
char *c;
int i;
unsigned int ui;
long l;
unsigned long ul;
long long ll;
unsigned long long ull;
intmax_t im;
uintmax_t uim;
size_t st;
ssize_t sst;
ptrdiff_t pd;
void *p;
char *s;
} t_data;
typedef struct s_parse_set
{
uint8_t flag;
size_t pos_width;
size_t pos_precision;
size_t pos_conv;
int width;
int precision;
char *length_modifier;
char *conv_type;
t_data data;
size_t out_len;
struct s_parse_set *next;
} t_parse_set;
#endif