11e3472c5f37ca3686dd69b079d4d02a302f5798dTheodore Ts'o/*
21e3472c5f37ca3686dd69b079d4d02a302f5798dTheodore Ts'o * clear.c -- Clear a UUID
3efc6f628e15de95bcd13e4f0ee223cb42115d520Theodore Ts'o *
419c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o * Copyright (C) 1996, 1997 Theodore Ts'o.
519c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o *
619c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o * %Begin-Header%
71bbfec624c4bbe767060a13762aa9a656536a4fdTheodore Ts'o * Redistribution and use in source and binary forms, with or without
81bbfec624c4bbe767060a13762aa9a656536a4fdTheodore Ts'o * modification, are permitted provided that the following conditions
91bbfec624c4bbe767060a13762aa9a656536a4fdTheodore Ts'o * are met:
101bbfec624c4bbe767060a13762aa9a656536a4fdTheodore Ts'o * 1. Redistributions of source code must retain the above copyright
111bbfec624c4bbe767060a13762aa9a656536a4fdTheodore Ts'o *    notice, and the entire permission notice in its entirety,
121bbfec624c4bbe767060a13762aa9a656536a4fdTheodore Ts'o *    including the disclaimer of warranties.
131bbfec624c4bbe767060a13762aa9a656536a4fdTheodore Ts'o * 2. Redistributions in binary form must reproduce the above copyright
141bbfec624c4bbe767060a13762aa9a656536a4fdTheodore Ts'o *    notice, this list of conditions and the following disclaimer in the
151bbfec624c4bbe767060a13762aa9a656536a4fdTheodore Ts'o *    documentation and/or other materials provided with the distribution.
161bbfec624c4bbe767060a13762aa9a656536a4fdTheodore Ts'o * 3. The name of the author may not be used to endorse or promote
171bbfec624c4bbe767060a13762aa9a656536a4fdTheodore Ts'o *    products derived from this software without specific prior
181bbfec624c4bbe767060a13762aa9a656536a4fdTheodore Ts'o *    written permission.
19efc6f628e15de95bcd13e4f0ee223cb42115d520Theodore Ts'o *
201bbfec624c4bbe767060a13762aa9a656536a4fdTheodore Ts'o * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
211bbfec624c4bbe767060a13762aa9a656536a4fdTheodore Ts'o * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
221bbfec624c4bbe767060a13762aa9a656536a4fdTheodore Ts'o * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ALL OF
231bbfec624c4bbe767060a13762aa9a656536a4fdTheodore Ts'o * WHICH ARE HEREBY DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE
241bbfec624c4bbe767060a13762aa9a656536a4fdTheodore Ts'o * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
251bbfec624c4bbe767060a13762aa9a656536a4fdTheodore Ts'o * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
261bbfec624c4bbe767060a13762aa9a656536a4fdTheodore Ts'o * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
271bbfec624c4bbe767060a13762aa9a656536a4fdTheodore Ts'o * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
281bbfec624c4bbe767060a13762aa9a656536a4fdTheodore Ts'o * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
291bbfec624c4bbe767060a13762aa9a656536a4fdTheodore Ts'o * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
301bbfec624c4bbe767060a13762aa9a656536a4fdTheodore Ts'o * USE OF THIS SOFTWARE, EVEN IF NOT ADVISED OF THE POSSIBILITY OF SUCH
311bbfec624c4bbe767060a13762aa9a656536a4fdTheodore Ts'o * DAMAGE.
3219c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o * %End-Header%
331e3472c5f37ca3686dd69b079d4d02a302f5798dTheodore Ts'o */
341e3472c5f37ca3686dd69b079d4d02a302f5798dTheodore Ts'o
3519c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o#include "string.h"
3619c78dc07fce2d6f39b5e541562afc3ca1ea38ffTheodore Ts'o
371e3472c5f37ca3686dd69b079d4d02a302f5798dTheodore Ts'o#include "uuidP.h"
381e3472c5f37ca3686dd69b079d4d02a302f5798dTheodore Ts'o
391e3472c5f37ca3686dd69b079d4d02a302f5798dTheodore Ts'ovoid uuid_clear(uuid_t uu)
401e3472c5f37ca3686dd69b079d4d02a302f5798dTheodore Ts'o{
411e3472c5f37ca3686dd69b079d4d02a302f5798dTheodore Ts'o	memset(uu, 0, 16);
421e3472c5f37ca3686dd69b079d4d02a302f5798dTheodore Ts'o}
431e3472c5f37ca3686dd69b079d4d02a302f5798dTheodore Ts'o
44