Skip to content

Commit

Permalink
another try
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGAzed committed Jun 23, 2024
1 parent 67d8fec commit f09e136
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion program/source/structures/concrete/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ KGrid _init_grid(FILE * kakuro_file) {
assert(kakuro_file && "KAKURO FILE POINTER IS NULL");

KGrid g = { 0 };
assert((GRID_DIMENTIONS == fread(g.size, sizeof(ksize_t), GRID_DIMENTIONS, kakuro_file)) && "READ FAILED");
assert(fread(&(g.size[ROW]), sizeof(ksize_t), 1, kakuro_file));
assert(fread(&(g.size[COLUMN]), sizeof(ksize_t), 1, kakuro_file));
printf("%02hhd %02hhd\n", g.size[ROW], g.size[COLUMN]);
fflush(stdout);
g.count = g.size[ROW] * g.size[COLUMN];
Expand Down

0 comments on commit f09e136

Please sign in to comment.