copy.c revision 19c78dc07fce2d6f39b5e541562afc3ca1ea38ff
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 Public 8 * License. 9 * %End-Header% 10 */ 11 12#include "uuidP.h" 13 14void uuid_copy(uuid_t uu1, uuid_t uu2) 15{ 16 unsigned char *cp1, *cp2; 17 int i; 18 19 for (i=0, cp1 = uu1, cp2 = uu2; i < 16; i++) 20 *cp1++ = *cp2++; 21} 22