summaryrefslogtreecommitdiff
path: root/capplets/file-types/libuuid/copy.c
blob: 5d0efc4aa7e05fc9e377ff8b836e7d847cd1fe75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 * copy.c --- copy UUIDs
 * 
 * Copyright (C) 1996, 1997 Theodore Ts'o.
 *
 * %Begin-Header%
 * This file may be redistributed under the terms of the GNU Public
 * License.
 * %End-Header%
 */

#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++;
}