-
Notifications
You must be signed in to change notification settings - Fork 0
/
struct.h
41 lines (35 loc) · 1.28 KB
/
struct.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* struct.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: marvin <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/10/06 12:35:32 by marvin #+# #+# */
/* Updated: 2023/10/16 07:30:26 by marvin ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef STRUCT_H
# define STRUCT_H
# include <stddef.h>
typedef struct s_str
{
size_t len;
char *_Nonnull get;
size_t _len;
} t_str;
typedef char * t_cstr;
typedef struct s_cell
{
struct s_cell *_Nullable prev;
struct s_cell *_Nullable next;
size_t bytes;
} t_cell;
typedef struct s_vptr
{
void *_Nonnull data;
size_t len;
size_t _len;
size_t _elem_size;
} t_vptr;
#endif