1997-04-29 18:53:37 +04:00
|
|
|
/*
|
|
|
|
* copy.c --- copy UUIDs
|
1997-04-29 20:17:09 +04:00
|
|
|
*
|
|
|
|
* Copyright (C) 1996, 1997 Theodore Ts'o.
|
|
|
|
*
|
|
|
|
* %Begin-Header%
|
2000-04-08 00:06:04 +04:00
|
|
|
* This file may be redistributed under the terms of the GNU
|
|
|
|
* Library General Public License.
|
1997-04-29 20:17:09 +04:00
|
|
|
* %End-Header%
|
1997-04-29 18:53:37 +04:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "uuidP.h"
|
|
|
|
|
compare.c (uuid_compare), copy.c (uuid_copy),
isnull.c (uuid_is_null), pack.c (uuid_pack),
parse.c (uuid_parse), unpack.c (uuid_unpack),
unparse.c (uuid_unparse), uuid.h, uuidP.h,
uuid_time.c (uuid_time, uuid_type, uuid_variant):
Use const for pointer variables that we don't modify. Add
the appropriate ifdef's in uuid.h to make it be C++ friendly.
2001-09-11 04:30:09 +04:00
|
|
|
void uuid_copy(uuid_t dst, const uuid_t src)
|
1997-04-29 18:53:37 +04:00
|
|
|
{
|
compare.c (uuid_compare), copy.c (uuid_copy),
isnull.c (uuid_is_null), pack.c (uuid_pack),
parse.c (uuid_parse), unpack.c (uuid_unpack),
unparse.c (uuid_unparse), uuid.h, uuidP.h,
uuid_time.c (uuid_time, uuid_type, uuid_variant):
Use const for pointer variables that we don't modify. Add
the appropriate ifdef's in uuid.h to make it be C++ friendly.
2001-09-11 04:30:09 +04:00
|
|
|
unsigned char *cp1;
|
|
|
|
const unsigned char *cp2;
|
|
|
|
int i;
|
1997-04-29 18:53:37 +04:00
|
|
|
|
2001-01-12 21:30:54 +03:00
|
|
|
for (i=0, cp1 = dst, cp2 = src; i < 16; i++)
|
1997-04-29 18:53:37 +04:00
|
|
|
*cp1++ = *cp2++;
|
|
|
|
}
|