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))
*t++ = *f++;
else {
register char *p;
register int n = (*f++ & 0377);
*t = '\\';
p = (t += 4);
*--p = (n & 07) + '0';
n >>= 3;
*--p = (n & 07) + '0';
n >>= 3;
*--p = (n & 07) + '0';
n >>= 3;
*t++ = '\\';
*t++ = ((*f >> 6) & 03) + '0';
*t++ = ((*f >> 3) & 07) + '0';
*t++ = (*f++ & 07) + '0';
}
}
*t = '\000';