manual??? and refactoring

This commit is contained in:
2025-10-17 21:08:03 +02:00
parent a2d4290076
commit 103f85d07e
15 changed files with 211 additions and 52 deletions

View File

@@ -1,6 +1,5 @@
#include "rooster.h"
#include <ncurses.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
@@ -89,7 +88,7 @@ static int get_grid_sizes(FILE *fh, rooster *rost) {
return 0;
}
rost->height = (int)ftell(fh) / (int)sizeof(char) / rost->width;
rost->height = (int)ftell(fh) / (int)sizeof(char) / (rost->width + 1);
fseek(fh, 0, SEEK_SET);
return 1;