6 static char tab[100][W];
10 char *r = lsearch(k, tab, &nel, W, (int(*)(const void*,const void*))strcmp); \
11 if (strcmp(r, k) != 0) \
12 t_error("lsearch %s failed\n", #k); \
15 #define get(k) lfind(k, tab, &nel, W, (int(*)(const void*,const void*))strcmp)
32 t_error("lfind a failed\n");
34 t_error("lfind c should fail\n");
38 t_error("lsearch g should not modify the table size (%d, was %d)\n", nel, n);
42 t_error("lsearch j should increase the table size (%d, was %d)\n", nel, n);