From bc7cb1a15a67c859c8c71c4b52bb35fe9425a63d Mon Sep 17 00:00:00 2001 From: rsc Date: Sun, 23 Nov 2003 18:04:47 +0000 Subject: new utilities. the .C files compile but are renamed to avoid building automatically. --- src/cmd/unutf.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/cmd/unutf.c (limited to 'src/cmd/unutf.c') diff --git a/src/cmd/unutf.c b/src/cmd/unutf.c new file mode 100644 index 00000000..c1617315 --- /dev/null +++ b/src/cmd/unutf.c @@ -0,0 +1,16 @@ +#include +#include +#include + +Biobuf bin; + +void +main(void) +{ + int c; + + Binit(&bin, 0, OREAD); + while((c = Bgetrune(&bin)) >= 0) + print("0x%ux\n", c); + exits(0); +} -- cgit v1.2.3