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.
ttt_board_to_string (ttt_board_t *board)
{
/* XXX: NYI */
+ return NULL;
}
/* Write a string representation of a board to the provided file.