Post B6vWnmXK8LqZpomtCy by ns@sacred.harpy.faith
(DIR) More posts by ns@sacred.harpy.faith
(DIR) Post #B6vWnmXK8LqZpomtCy by ns@sacred.harpy.faith
1 likes, 0 repeats
@Zergling_man this is also a test of mentions secretly but shhh#include <u.h>#include <libc.h>#include <bio.h>voidmain (void){ Biobuf bin, bout; char hex[16] = "0123456789abcdef"; uchar buf[8192]; int n, i; Binit (&bin, 0, OREAD); Binit (&bout, 1, OWRITE); while ((n = Bread (&bin, buf, sizeof buf)) > 0) { for (i = 0; i < n; i++) { Bputc (&bout, hex[buf[i] >> 4]); Bputc (&bout, hex[buf[i] & 0xF]); } } Bterm (&bin); Bterm (&bin); exits(0);}