/[public]/psiconv/trunk/program/extra/checkuid.c
ViewVC logotype

Diff of /psiconv/trunk/program/extra/checkuid.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 2 Revision 351
1/*
2 checkuid.c - Part of psiconv, a PSION 5 file formats converter
3 Copyright (c) 1999-2014 Frodo Looijaard <frodo@frodo.looijaard.name>
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18*/
19
20
21#include <stdio.h>
22#include <stdlib.h>
23
1unsigned long uid1[32] = { /* bit 0 */ 0x000045A0, 24unsigned long uid1[32] = { /* bit 0 */ 0x000045A0,
2 /* bit 1 */ 0x00008B40, 25 /* bit 1 */ 0x00008B40,
3 /* bit 2 */ 0x000006A1, 26 /* bit 2 */ 0x000006A1,
4 /* bit 3 */ 0x00000D42, 27 /* bit 3 */ 0x00000D42,
5 /* bit 4 */ 0x00001A84, 28 /* bit 4 */ 0x00001A84,
130 } 153 }
131} 154}
132 155
133int main(int argc, char *argv[]) 156int main(int argc, char *argv[])
134{ 157{
135 unsigned long i,res; 158 unsigned long res;
136 res = checkuid(0x10000037,0x1000006D,0x1000007F); 159 res = checkuid(0x10000037,0x1000006D,0x1000007F);
137 printhex(res); 160 printhex(res);
138 putchar('\n'); 161 putchar('\n');
162 exit(0);
139} 163}

Legend:
Removed from v.2  
changed lines
  Added in v.351

frodo@frodo.looijaard.name
ViewVC Help
Powered by ViewVC 1.1.26