From 035b2e455661701b217c54ad7e7afed8d7ead8fd Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Tue, 6 Nov 2007 17:18:49 +0100 Subject: move sourceclean.c to tools/ --- tools/sourceclean.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tools/sourceclean.c (limited to 'tools') diff --git a/tools/sourceclean.c b/tools/sourceclean.c new file mode 100644 index 0000000..8fb02c4 --- /dev/null +++ b/tools/sourceclean.c @@ -0,0 +1,12 @@ +#include + +int main(int argc, char **argv) { + unsigned char c; + while (fread(&c, sizeof(c), 1, stdin)) { + if (c < 128) { + printf("%c", c); + } else { + printf("\\x%2X", c); + } + } +} -- cgit v1.2.3