summaryrefslogtreecommitdiffstats
path: root/kdeprint/descriptions/sortthem.cpp
blob: 9adc284b1d633416eb93d218e35784866bbf1321 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28


#include <tqstring.h>
#include <tqstringlist.h>
#include <stdlib.h>
#include <stdio.h>



int main(int argc, char **argv) {
TQStringList have;
char buf[1024];


   while (!feof(stdin)) {
      char *cline = fgets(buf, 1000, stdin);
      if (!cline) break;
      if (!have.contains(cline)) {
         have << cline;
         fprintf(stdout, "%s", cline);
      }
   }


return 0;
}