updates to elimate unused variables and enhance readme

This commit is contained in:
2025-08-12 23:02:19 +01:00
parent a81ed99e82
commit 5bac6275ef
4 changed files with 6 additions and 8 deletions

View File

@@ -115,7 +115,7 @@ void movesouth(Housearray* f, char direction){
for (int i = 0; i< old_rows; ++i){
new_grid[i] = f->houses[i];
}
new_grid[0] = (int*)calloc(new_cols, sizeof(int));//Initialising the new row to empty
new_grid[new_rows - 1] = (int*)calloc(new_cols, sizeof(int));//Initialising the new row to empty
free(f->houses);
f->houses = new_grid;
f->rows·in·array = new_rows;