--- psiconv/trunk/program/extra/checkuid.c 2000/12/24 16:34:19 74 +++ psiconv/trunk/program/extra/checkuid.c 2000/12/24 17:26:24 75 @@ -1,3 +1,25 @@ +/* + checkuid.c - Part of psiconv, a PSION 5 file formats converter + Copyright (c) 1999, 2000 Frodo Looijaard + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +*/ + + +#include + unsigned long uid1[32] = { /* bit 0 */ 0x000045A0, /* bit 1 */ 0x00008B40, /* bit 2 */ 0x000006A1, @@ -132,8 +154,9 @@ int main(int argc, char *argv[]) { - unsigned long i,res; + unsigned long res; res = checkuid(0x10000037,0x1000006D,0x1000007F); printhex(res); putchar('\n'); + exit(0); }