X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fkcompare.c;h=936929f8f3c9c4ccdbff75fc332790984b2a3ba4;hb=cc9f94a61cbd9dcc0df0cf7d0c7c41d2cec88189;hp=f39b750989882ad548f88d95821e87ee74add261;hpb=81a75ae20b5b250309a70de51bfdf8de0019f882;p=idzebra-moved-to-github.git diff --git a/index/kcompare.c b/index/kcompare.c index f39b750..936929f 100644 --- a/index/kcompare.c +++ b/index/kcompare.c @@ -42,6 +42,13 @@ int key_compare_it (const void *p1, const void *p2) return 0; } +char *key_print_it (const void *p, char *buf) +{ + const struct it_key *i = p; + sprintf (buf, "%d:%d", i->sysno, i->seqno); + return buf; +} + int key_compare (const void *p1, const void *p2) { struct it_key i1, i2; @@ -290,7 +297,10 @@ int key_SU_decode (int *ch, const unsigned char *out) /* * $Log: kcompare.c,v $ - * Revision 1.38 2002-04-05 08:46:26 adam + * Revision 1.39 2002-04-12 14:55:22 adam + * key_print_it + * + * Revision 1.38 2002/04/05 08:46:26 adam * Zebra with full functionality * * Revision 1.37 2001/11/19 23:08:30 adam