void
ttt_board_init (ttt_board_t *board)
{
- for (int i; i < TTT_BOARD_MAX_CELLS; i++)
- {
- &board->cells[i] = 0;
- }
+ int i;
+ for (i = 0; i < TTT_BOARD_MAX_CELLS; i++)
+ {
+ board->cells[i] = 0;
+ }
}
/* Initialize a board from its string representation.