grid_utils.h
void free_grid(CELL_TYPE** in, size_t rows)
{
    for (size_t i = 0; i < rows; i++) {
        free(in[i]);
    }
    free(in);
}
/**
 * Frees a grid previously created by the function new_grid
 * @param rows number of rows in the grid
 */
Frees a grid previously created by the function new_grid
@param rows number of rows in the grid
Frees a grid previously created by the function new_grid @param rows number of rows in the grid
void free_grid(CELL_TYPE** in, size_t rows)
{
    for (size_t i = 0; i < rows; i++) {
        free(in[i]);
    }
    free(in);
}
void free_grid ( CELL_TYPE * * in , size_t rows ) { for ( size_t i = 0 ; i < rows ; i ++ ) { free ( in [ i ] ) ; } free ( in ) ; }
Frees a grid previously created by the function new_grid
 @param rows number of rows in the grid
Frees a grid previously created by the function new_grid @param rows number of rows in the grid