diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-02-22 09:21:58 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-02-26 08:15:45 +0000 |
| commit | ae3ec52507c85395f90bf7c0ecc5b79affdc9b63 (patch) | |
| tree | e2782745aa45cc85b6e17a2533b35fbe0748820f /grid.h | |
| parent | grid: add grid_free() (diff) | |
grid: add grid_snapshot()
This function deep copies a grid into a newly *allocated* grid struct.
Diffstat (limited to 'grid.h')
| -rw-r--r-- | grid.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -4,6 +4,7 @@ #include "debug.h" #include "terminal.h" +struct grid *grid_snapshot(const struct grid *grid); void grid_free(struct grid *grid); void grid_swap_row(struct grid *grid, int row_a, int row_b); |
