15 l = (RAND_MAX + 1U) - ((RAND_MAX + 1U) % max);
23 main(int argc, char **argv)
26 struct line *f = NULL, *n, **b, **w;
29 while (fgets(buf, sizeof(buf)-1, stdin))
31 if (!strchr(buf, '\n'))
33 fprintf(stderr, "Line too long\n");
36 n = malloc(sizeof(struct line) + strlen(buf));
39 fprintf(stderr, "Out of memory\n");
49 w = b = malloc(sizeof(struct line *) * cnt);
52 fprintf(stderr, "Out of memory\n");
70 fputs(w[i]->x, stdout);