Post B7VIevh7wm0Z6EV3Oy by ns@sacred.harpy.faith
(DIR) More posts by ns@sacred.harpy.faith
(DIR) Post #B7VIevh7wm0Z6EV3Oy by ns@sacred.harpy.faith
0 likes, 0 repeats
even my corrected version fails with the same error. #include <u.h>#include <libc.h>#include <bio.h>ucharv (uchar b){ b = (b >> 4) | (b << 4); b = ((b & 0xCC) >> 2) | ((b & 0x33) << 2); b = ((b & 0xAA) >> 1) | ((b & 0x55) << 1); return b;}voidmain (void){ Biobuf B; int w, h, i, r, t, x; uchar *d; char *p; Binit (&B, 0, OREAD); p = Brdline (&B, '\n'); Bterm (&B); w = strtol(p, &p, 10); h = strtol(p, &p, 10); r = (w + 7) / 8; t = r * h; d = malloc(t); for (i = 0; i < t; i ++) d [i] = v ((uchar) (strtol (p, &p, 16))); print ("%11s %11d %11d %11d %11d ", "k1", 0, 0, w, h); write (1, d, t); exits(0);} maybe i should use stdio... i am clearly filtered :mayasad: thank you for reading my blog post.
(DIR) Post #B7VIevxQy93Huo84oq by mikuphile@gearlandia.haus
0 likes, 0 repeats
@ns The absolute state of cnility
(DIR) Post #B7X0CRhyQrKz8D5Gim by mikuphile@gearlandia.haus
0 likes, 0 repeats
@HatkeshiatorTND @ns>structured dataDid baal labs backpedal on the “le bag of bytes” meme?