7 main (int argc
, char *argv
[])
13 for (n
= 1; n
< argc
; ++n
)
15 FILE *fp
= fopen (argv
[n
], "r");
21 ssize_t cnt
= getline (&line
, &len
, fp
);
29 if (runp
[0] == '<' && runp
[1] == 'U' && isxdigit (runp
[2])
30 && isxdigit (runp
[3]) && isxdigit (runp
[4])
31 && isxdigit (runp
[5]) && runp
[6] == '>')
33 unsigned int val
= strtoul (runp
+ 2, NULL
, 16);
40 putchar (0xc0 | (val
>> 6));
41 putchar (0x80 | (val
& 0x3f));
45 putchar (0xe0 | (val
>> 12));
46 putchar (0x80 | ((val
>> 6) & 0x3f));
47 putchar (0x80 | (val
& 0x3f));
55 while (runp
< &line
[cnt
]);