Whamcloud - gitweb
compare.c (uuid_compare), copy.c (uuid_copy),
[tools/e2fsprogs.git] / lib / uuid / copy.c
1 /*
2  * copy.c --- copy UUIDs
3  * 
4  * Copyright (C) 1996, 1997 Theodore Ts'o.
5  *
6  * %Begin-Header%
7  * This file may be redistributed under the terms of the GNU 
8  * Library General Public License.
9  * %End-Header%
10  */
11
12 #include "uuidP.h"
13
14 void uuid_copy(uuid_t dst, const uuid_t src)
15 {
16         unsigned char           *cp1;
17         const unsigned char     *cp2;
18         int                     i;
19
20         for (i=0, cp1 = dst, cp2 = src; i < 16; i++)
21                 *cp1++ = *cp2++;
22 }