2 #define _XOPEN_SOURCE 700
9 static char tab
[100][W
];
13 char *r = lsearch(k, tab, &nel, W, (int(*)(const void*,const void*))strcmp); \
14 if (strcmp(r, k) != 0) \
15 t_error("lsearch %s failed\n", #k); \
18 #define get(k) lfind(k, tab, &nel, W, (int(*)(const void*,const void*))strcmp)
35 t_error("lfind a failed\n");
37 t_error("lfind c should fail\n");
41 t_error("lsearch g should not modify the table size (%d, was %d)\n", nel
, n
);
45 t_error("lsearch j should increase the table size (%d, was %d)\n", nel
, n
);