summaryrefslogtreecommitdiff
path: root/tools/sourceclean.c
blob: 8fb02c4d6b37f35f5a1238eb3142723710e8f1eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <stdio.h>

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);
		}
	}
}