Skip to content
Snippets Groups Projects
Commit 775309ef authored by Arnaud Albiez's avatar Arnaud Albiez
Browse files

Ajout de la fonction free et de sa declaration

parent 3b6a50c0
No related merge requests found
......@@ -104,3 +104,9 @@ void change_cell_grid(struct Grid* grid, int x, int y, enum CaseType new_valeur)
{
grid->game_grid[coordonner_vers_indice(x, y, grid)] = new_valeur;
}
void free_grid(struct Grid* grid)
{
free( grid->game_grid);
free (grid);
}
......@@ -27,6 +27,9 @@ void Affichage_grid(struct Grid* grid);
void change_cell_grid(struct Grid* grid, int x, int y, enum CaseType new_valeur);
void free_grid(struct Grid* grid)
#endif
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment