mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
grid: implement a memmove-sort-of function
grid_memmove() moves cell data from one index to another, taking the grid offset into account.
This commit is contained in:
parent
b45b492f41
commit
482f56b4a2
2 changed files with 34 additions and 0 deletions
1
grid.h
1
grid.h
|
|
@ -5,3 +5,4 @@
|
|||
|
||||
struct cell *grid_get_range(struct grid *grid, size_t start, size_t *length);
|
||||
void grid_memset(struct grid *grid, size_t start, int c, size_t length);
|
||||
void grid_memmove(struct grid *grid, size_t dst, size_t src, size_t length);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue