-
Notifications
You must be signed in to change notification settings - Fork 0
Parsing
Alessandro Metta edited this page Dec 16, 2021
·
7 revisions
For the parsing, I decide to use an array, but since we have two value for every point, I implemented a structure of two integer.
typedef struct s_fdf
{
int z;
int color;
} t_fdf;
Before lexer, I decide to took the number of rows and columns of the map to allocate the matrix, opening the file and use gnl and word_counter, function already used in ft_split, and closing it.
Then I reopen the file and lexer it.