From 8c8f6b99d2eb8bc783179c7c0113fc4a734c9585 Mon Sep 17 00:00:00 2001 From: jackbackrack Date: Mon, 27 Apr 2015 16:21:23 -0700 Subject: build scripts --- bin/filter.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 bin/filter.cpp (limited to 'bin/filter.cpp') diff --git a/bin/filter.cpp b/bin/filter.cpp new file mode 100644 index 00000000..ce67b8e3 --- /dev/null +++ b/bin/filter.cpp @@ -0,0 +1,11 @@ +#include + +int main (int argc, char* argv[]) { + int c; + for (;;) { + c = getchar(); + if (c == EOF) break; + char nc = (c == '$' || c == '#') ? '_' : c; + putchar(nc); + } +} -- cgit v1.2.3