Original Post
Here's the problem. I have two functions. The first takes in a pointer to an array (or so I believe, I'm still bad with pointers and references) and proceeds to the array to a value. The second calls the first function. The first problem I ran into was that I had to pass in a pointer to an array otherwise the array in the function had invalid types. Then I ran into the problem of not being able to convert the array in the first function into a double pointer. To make things clearer, here's the code (the exact wording of the first error might be off)
void clearBoard(COLOR *board[])
{
for(int y = 0; y < BOARD_HEIGHT; y++)
{
for(int x = 0; x < BOARD_WIDTH; x++)
{
board[x][y] = NONE; //invalid types COLOR[int] for array subscript
}
}
}
void setBoard()
{
clearBoard(*checkBoard); //Cannot convert COLOR* to COLOR**
// function does other things
}