2 * Copyright (C) 1995-2005, Index Data ApS
3 * See the file LICENSE for details.
5 * $Id: tstwrbuf.c,v 1.3 2005-02-01 17:23:36 adam Exp $
11 #include <yaz/wrbuf.h>
13 int main (int argc, char **argv)
16 WRBUF wr = wrbuf_alloc();
22 for (step = 1; step < 65; step++)
28 for (j = 1; j<step; j++)
38 if (len != step * (step-1) / 2)
40 printf ("tstwrbuf 1 %d len=%d\n", step, len);
44 for (j = 1; j<step; j++)
49 printf ("tstwrbuf 2 %d k=%d\n", step, k);