6 |
* Copyright (c) 2001 James Hess |
* Copyright (c) 2001 James Hess |
7 |
* All rights reserved. |
* All rights reserved. |
8 |
* |
* |
9 |
* Redistribution and use in source and binary forms, with or without |
* This program is free software; you can redistribute it and/or modify |
10 |
* modification, are permitted provided that the following conditions |
* it under the terms of the GNU General Public License as published by |
11 |
* are met: |
* the Free Software Foundation; either version 2 of the License, or |
12 |
* 1. Redistributions of source code must retain the above copyright |
* (at your option) any later version. |
|
* notice, this list of conditions and the following disclaimer. |
|
|
* 2. Redistributions in binary form must reproduce the above copyright |
|
|
* notice, this list of conditions and the following disclaimer in the |
|
|
* documentation and/or other materials provided with the distribution. |
|
|
* 3. Neither the name of the authors nor the names of its contributors |
|
|
* may be used to endorse or promote products derived from this software |
|
|
* without specific prior written permission. |
|
13 |
* |
* |
14 |
* THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND |
* This program is distributed in the hope that it will be useful, |
15 |
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
16 |
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
17 |
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE |
* GNU General Public License for more details. |
18 |
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
* |
19 |
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
* You should have received a copy of the GNU General Public License |
20 |
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
* along with this program; if not, write to the Free Software |
21 |
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
|
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
|
|
* SUCH DAMAGE. |
|
22 |
*/ |
*/ |
23 |
|
|
24 |
#include <stdio.h> |
#include <stdio.h> |