2 * Copyright (C) 1994-1995, Index Data I/S
4 * Sebastian Hammer, Adam Dickmeiss
7 * Revision 1.4 1995-09-08 14:52:27 adam
8 * Minor changes. Dictionary is lower case now.
10 * Revision 1.3 1995/09/07 13:58:36 adam
11 * New parameter: result-set file descriptor (RSFD) to support multiple
12 * positions within the same result-set.
13 * Boolean operators: and, or, not implemented.
14 * Result-set references.
16 * Revision 1.2 1995/09/06 16:11:17 adam
17 * Option: only one word key per file.
19 * Revision 1.1 1995/09/04 09:10:36 adam
20 * More work on index add/del/update.
21 * Merge sort implemented.
22 * Initial work on z39 server.
34 int key_compare (const void *p1, const void *p2)
37 memcpy (&i1, p1, sizeof(i1));
38 memcpy (&i2, p2, sizeof(i2));
39 if (i1.sysno != i2.sysno)
41 if (i1.sysno > i2.sysno)
46 if (i1.seqno != i2.seqno)
48 if (i1.seqno > i2.seqno)
54 if (i1.field != i2.field)
56 if (i1.field > i2.field)
65 int index_char_cvt (int c)