limit fstBC to 30bp in Python3 ver.
[GalaxyCodeBases.git] / c_cpp / lib / klib / test / klist_test.c
blobcd13813df334ae0a23ae9f0b7d5651fffd98a03d
1 #include <stdio.h>
2 #include "klist.h"
4 #define __int_free(x)
5 KLIST_INIT(32, int, __int_free)
7 int main()
9 klist_t(32) *kl;
10 kliter_t(32) *p;
11 kl = kl_init(32);
12 *kl_pushp(32, kl) = 1;
13 *kl_pushp(32, kl) = 10;
14 kl_shift(32, kl, 0);
15 for (p = kl_begin(kl); p != kl_end(kl); p = kl_next(p))
16 printf("%d\n", kl_val(p));
17 kl_destroy(32, kl);
18 return 0;