7 main (int argc
, char *argv
[])
15 static char *new_argv
[] = { NULL
, (char *) "/dev/stdin", NULL
};
20 for (n
= 1; n
< argc
; ++n
)
22 FILE *fp
= fopen (argv
[n
], "r");
28 ssize_t cnt
= getline (&line
, &len
, fp
);
36 if (runp
[0] == '<' && runp
[1] == 'U' && isxdigit (runp
[2])
37 && isxdigit (runp
[3]) && isxdigit (runp
[4])
38 && isxdigit (runp
[5]) && runp
[6] == '>')
40 unsigned int val
= strtoul (runp
+ 2, NULL
, 16);
47 putchar (0xc0 | (val
>> 6));
48 putchar (0x80 | (val
& 0x3f));
52 putchar (0xe0 | (val
>> 12));
53 putchar (0x80 | ((val
>> 6) & 0x3f));
54 putchar (0x80 | (val
& 0x3f));
62 while (runp
< &line
[cnt
]);