aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/unutf.c
blob: c161731562d7c9f6b7686ee244b52ccfd4b25a2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <u.h>
#include <libc.h>
#include <bio.h>

Biobuf bin;

void
main(void)
{
	int c;

	Binit(&bin, 0, OREAD);
	while((c = Bgetrune(&bin)) >= 0)
		print("0x%ux\n", c);
	exits(0);
}