Whamcloud - gitweb
43b81f879e185067c9feb9eb89941319b7f26b44
[tools/e2fsprogs.git] / lib / uuid / isnull.c
1 /*
2  * isnull.c --- Check whether or not the UUID is null
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
14 /* Returns 1 if the uuid is the NULL uuid */
15 int uuid_is_null(uuid_t uu)
16 {
17         unsigned char   *cp;
18         int             i;
19
20         for (i=0, cp = uu; i < 16; i++)
21                 if (*cp++)
22                         return 0;
23         return 1;
24 }
25