-
Notifications
You must be signed in to change notification settings - Fork 0
/
cell.h
34 lines (18 loc) · 1.1 KB
/
cell.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
/*
|----------------------------------------------------------|
| This file contains the structures and prototype |
| needed for the cell |
|----------------------------------------------------------|
*/
// -------------------------- Includes --------------------------
#ifndef AGENC_FICHIER_H
#define AGENC_FICHIER_H
// -------------------------- Structures --------------------------
typedef struct s_cell{ // Structure of a cell
int value; // Value of the cell
struct s_cell **levels; // Tab stocking all of "next" values of the cell depending of the levels
}t_cell, *p_cell; // Creation of an alias for the structure
// -------------------------- Prototypes --------------------------
p_cell createEmptyCell(int, int); // Creates an empty cell with vertical tab
int cellLength(p_cell); // Returns the number of characters of a cell value
#endif //AGENC_FICHIER_H