From b529f046c9a64ac5fcfa60747af940cf972b3ebc Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 6 Nov 2011 15:56:34 -0600 Subject: Actually move the kde files that were renamed in the last commit --- tdeprint/descriptions/sortthem.cpp | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 tdeprint/descriptions/sortthem.cpp (limited to 'tdeprint/descriptions/sortthem.cpp') 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 +#include +#include +#include + + + +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; +} + + -- cgit v1.2.1