summaryrefslogtreecommitdiff
path: root/lib/uuid/copy.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/uuid/copy.c')
-rw-r--r--lib/uuid/copy.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/uuid/copy.c b/lib/uuid/copy.c
new file mode 100644
index 00000000..739e2ddb
--- /dev/null
+++ b/lib/uuid/copy.c
@@ -0,0 +1,14 @@
+/*
+ * copy.c --- copy UUIDs
+ */
+
+#include "uuidP.h"
+
+void uuid_copy(uuid_t uu1, uuid_t uu2)
+{
+ unsigned char *cp1, *cp2;
+ int i;
+
+ for (i=0, cp1 = uu1, cp2 = uu2; i < 16; i++)
+ *cp1++ = *cp2++;
+}