1997-04-29 18:53:37 +04:00
|
|
|
/*
|
|
|
|
* isnull.c --- Check whether or not the UUID is null
|
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"
|
|
|
|
|
|
|
|
/* Returns 1 if the uuid is the NULL uuid */
|
|
|
|
int uuid_is_null(uuid_t uu)
|
|
|
|
{
|
|
|
|
unsigned char *cp;
|
|
|
|
int i;
|
|
|
|
|
|
|
|
for (i=0, cp = uu; i < 16; i++)
|
|
|
|
if (*cp++)
|
|
|
|
return 0;
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|