diff options
author | Timothy Pearson <[email protected]> | 2011-11-06 15:56:34 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-11-06 15:56:34 -0600 |
commit | b529f046c9a64ac5fcfa60747af940cf972b3ebc (patch) | |
tree | 83c28cf7fa8fed1960ebd3924b579e7ed8c95cc6 /tdeprint/descriptions/sortthem.cpp | |
parent | 6508fe4c40c60fd7a43bd3d9e19b762e10ea3f53 (diff) | |
download | tdebase-b529f046c9a64ac5fcfa60747af940cf972b3ebc.tar.gz tdebase-b529f046c9a64ac5fcfa60747af940cf972b3ebc.zip |
Actually move the kde files that were renamed in the last commit
Diffstat (limited to 'tdeprint/descriptions/sortthem.cpp')
-rw-r--r-- | tdeprint/descriptions/sortthem.cpp | 28 |
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; +} + + |