]> asedeno.scripts.mit.edu Git - 1ts-debian.git/blob - zephyr/lib/ZCmpUID.c
new upstream version
[1ts-debian.git] / zephyr / lib / ZCmpUID.c
1 /* This file is part of the Project Athena Zephyr Notification System.
2  * It contains source for the ZCompareUID function.
3  *
4  *      Created by:     Robert French
5  *
6  *      $Id: ZCmpUID.c 2135 2008-01-21 03:39:30Z kcr $
7  *
8  *      Copyright (c) 1987 by the Massachusetts Institute of Technology.
9  *      For copying and distribution information, see the file
10  *      "mit-copyright.h". 
11  */
12
13 #ifndef lint
14 static const char rcsid_ZCompareUID_c[] = "$Id: ZCmpUID.c 2135 2008-01-21 03:39:30Z kcr $";
15 #endif
16
17 #include <internal.h>
18
19 int
20 ZCompareUID(ZUnique_Id_t *uid1,
21             ZUnique_Id_t *uid2)
22 {
23     return (!memcmp((char *)uid1, (char *)uid2, sizeof (*uid1)));
24 }