summaryrefslogtreecommitdiff
path: root/lib/uuid/isnull.c
blob: f72e8fba3063517485541a8fd85724b4d83de02d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
 * isnull.c --- Check whether or not the UUID is null
 */

#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;
}