From c0bec496239e43b389e42d8ed65e16b9c1cf8f26 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Tue, 6 Nov 2007 17:10:23 +0100 Subject: add sourceclean --- sourceclean.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 sourceclean.c diff --git a/sourceclean.c b/sourceclean.c new file mode 100644 index 0000000..8fb02c4 --- /dev/null +++ b/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