6 compare (const void *a, const void *b)
8 return strcmp (*(char **) a, *(char **) b);
21 for (i = 0; i < 500; ++i)
23 lens[i] = random() % 19;
25 for (j = 0; j < lens[i]; ++j)
26 lines[i][j] = random() % 26 + 'a';
30 qsort (lines, 500, sizeof (char *), compare);
32 for (i = 0; i < 500 && lines[i] != NULL; ++i)