aboutsummaryrefslogtreecommitdiff
path: root/dsf.c
diff options
context:
space:
mode:
Diffstat (limited to 'dsf.c')
-rw-r--r--dsf.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/dsf.c b/dsf.c
index f967ffb..06c4f9c 100644
--- a/dsf.c
+++ b/dsf.c
@@ -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;