Updated PCI IDs to latest snapshot.
[tangerine.git] / workbench / libs / uuid / uuid_clear.c
blob240d20b08f544fa7a8dad21740f0a9a7c4449b1a
1 /*
2 Copyright © 2007-2008, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #define DEBUG 1
8 #include <aros/symbolsets.h>
9 #include <aros/debug.h>
10 #include <aros/libcall.h>
11 #include <proto/exec.h>
13 #include <stdio.h>
14 #include <stdlib.h>
15 #include <ctype.h>
17 #include <assert.h>
19 #include "uuid_private.h"
20 #include LC_LIBDEFS_FILE
22 /*****************************************************************************
24 NAME */
25 AROS_LH1I(void, UUID_Clear,
27 /* SYNOPSIS */
28 AROS_LHA(uuid_t *, uuid, A0),
30 /* LOCATION */
31 struct uuid_base *, UUIDBase, 11, UUID)
33 /* FUNCTION
34 Clears the specified uuid.
36 INPUTS
37 uuid - UUID to be cleared.
39 RESULT
40 This function always succeeds.
42 NOTES
44 EXAMPLE
46 BUGS
48 SEE ALSO
50 INTERNALS
52 *****************************************************************************/
54 AROS_LIBFUNC_INIT
56 int i;
58 assert(uuid);
60 uuid->time_low = uuid->time_mid = uuid->time_hi_and_version = 0;
61 uuid->clock_seq_hi_and_reserved = uuid->clock_seq_low = 0;
62 for (i=0; i < 6; i++)
63 uuid->node[i] = 0;
65 AROS_LIBFUNC_EXIT