From 8362bf63dea22bbf6736609b0f49c152f975eb63 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 20 Jan 2010 01:29:50 +0000 Subject: Added old abandoned KDE3 version of koffice git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1077364 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kexi/3rdparty/uuid/isnull.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 kexi/3rdparty/uuid/isnull.c (limited to 'kexi/3rdparty/uuid/isnull.c') diff --git a/kexi/3rdparty/uuid/isnull.c b/kexi/3rdparty/uuid/isnull.c new file mode 100644 index 00000000..8aba238a --- /dev/null +++ b/kexi/3rdparty/uuid/isnull.c @@ -0,0 +1,25 @@ +/* + * isnull.c --- Check whether or not the UUID is null + * + * Copyright (C) 1996, 1997 Theodore Ts'o. + * + * %Begin-Header% + * This file may be redistributed under the terms of the GNU + * Library General Public License. + * %End-Header% + */ + +#include "uuidP.h" + +/* Returns 1 if the uuid is the NULL uuid */ +int uuid_is_null(const uuid_t uu) +{ + const unsigned char *cp; + int i; + + for (i=0, cp = uu; i < 16; i++) + if (*cp++) + return 0; + return 1; +} + -- cgit v1.2.1