7 DEFUN(compare
, (a
, b
), CONST PTR a AND CONST PTR b
)
9 return strcmp (*(char **) a
, *(char **) b
);
23 for (i
= 0; i
< 500; ++i
)
25 lens
[i
] = random() % 19;
27 for (j
= 0; j
< lens
[i
]; ++j
)
28 lines
[i
][j
] = random() % 26 + 'a';
32 qsort (lines
, 500, sizeof (char *), compare
);
34 for (i
= 0; i
< 500 && lines
[i
] != NULL
; ++i
)