summaryrefslogtreecommitdiffstats
path: root/kdeprint/descriptions/sortthem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kdeprint/descriptions/sortthem.cpp')
-rw-r--r--kdeprint/descriptions/sortthem.cpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/kdeprint/descriptions/sortthem.cpp b/kdeprint/descriptions/sortthem.cpp
new file mode 100644
index 000000000..e9e49c058
--- /dev/null
+++ b/kdeprint/descriptions/sortthem.cpp
@@ -0,0 +1,28 @@
+
+
+#include <qstring.h>
+#include <qstringlist.h>
+#include <stdlib.h>
+#include <stdio.h>
+
+
+
+int main(int argc, char **argv) {
+QStringList 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;
+}
+
+