code improvement

This commit is contained in:
ceriel 1987-08-06 14:24:08 +00:00
parent 5f6b6651e1
commit 88eaeed762

View file

@ -21,17 +21,10 @@ bts2str(b, n, s)
if (is_print(*f)) if (is_print(*f))
*t++ = *f++; *t++ = *f++;
else { else {
register char *p; *t++ = '\\';
register int n = (*f++ & 0377); *t++ = ((*f >> 6) & 03) + '0';
*t++ = ((*f >> 3) & 07) + '0';
*t = '\\'; *t++ = (*f++ & 07) + '0';
p = (t += 4);
*--p = (n & 07) + '0';
n >>= 3;
*--p = (n & 07) + '0';
n >>= 3;
*--p = (n & 07) + '0';
n >>= 3;
} }
} }
*t = '\000'; *t = '\000';