diff options
Diffstat (limited to 'dsf.c')
| -rw-r--r-- | dsf.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -74,6 +74,11 @@ void dsf_init(int *dsf, int size) * bits are the number of elements in the tree. */ } +void dsf_copy(int *to, int *from, int size) +{ + memcpy(to, from, size * sizeof(int)); +} + int *snew_dsf(int size) { int *ret; |