summaryrefslogtreecommitdiffstats
path: root/tdeprint/descriptions/sortthem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tdeprint/descriptions/sortthem.cpp')
-rw-r--r--tdeprint/descriptions/sortthem.cpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/tdeprint/descriptions/sortthem.cpp b/tdeprint/descriptions/sortthem.cpp
new file mode 100644
index 000000000..9adc284b1
--- /dev/null
+++ b/tdeprint/descriptions/sortthem.cpp
@@ -0,0 +1,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;
+}
+
+