Lines Matching refs:lines
1 /* sort.c - put input lines into order
15 Sort all lines of text from input files (or stdin) to stdout.
18 -u unique lines only
69 char **lines;
286 if (TT.lines && compare_keys((void *)&TT.lines, &line)>j)
288 free(TT.lines);
289 TT.lines = (char **)line;
292 TT.lines = xrealloc(TT.lines, sizeof(char *)*(TT.linecount+64));
293 TT.lines[TT.linecount] = line;
362 // Open input files and read data, populating TT.lines[TT.linecount]
370 qsort(TT.lines, TT.linecount, sizeof(char *), compare_keys);
377 if (!compare_keys(&TT.lines[jdx], &TT.lines[idx]))
378 free(TT.lines[idx]);
379 else TT.lines[++jdx] = TT.lines[idx];
386 char *s = TT.lines[idx];
395 free(TT.lines);