grid_utils.h
void copy_grid(CELL_TYPE*** dest, CELL_TYPE*** src, size_t rows, size_t cols){
     for(size_t i = 0; i < rows; i++){
         for (size_t j = 0; j < cols; j++){
             (*dest)[i][j] = (*src)[i][j];
         }
     }
 }
/**
 * Copies grid data from src to dest
 * @param dest the grid into which the data will be copied
 * @param src the grid from which the data will be copied
 * @param rows the number of rows to be copied
 * @param cols the number of columns to be copied
 */
Copies grid data from src to dest
@param dest the grid into which the data will be copied
@param src the grid from which the data will be copied
@param rows the number of rows to be copied
@param cols the number of columns to be copied
Copies grid data from src to dest @param dest the grid into which the data will be copied @param src the grid from which the data will be copied @param rows the number of rows to be copied @param cols the number of columns to be copied
void copy_grid(CELL_TYPE*** dest, CELL_TYPE*** src, size_t rows, size_t cols){
     for(size_t i = 0; i < rows; i++){
         for (size_t j = 0; j < cols; j++){
             (*dest)[i][j] = (*src)[i][j];
         }
     }
 }
void copy_grid ( CELL_TYPE * * * dest , CELL_TYPE * * * src , size_t rows , size_t cols ) { for ( size_t i = 0 ; i < rows ; i ++ ) { for ( size_t j = 0 ; j < cols ; j ++ ) { ( * dest ) [ i ] [ j ] = ( * src ) [ i ] [ j ] ; } } }
Copies grid data from src to dest
 @param dest the grid into which the data will be copied
 @param src the grid from which the data will be copied
 @param rows the number of rows to be copied
 @param cols the number of columns to be copied
Copies grid data from src to dest @param dest the grid into which the data will be copied @param src the grid from which the data will be copied @param rows the number of rows to be copied @param cols the number of columns to be copied