code improvement
This commit is contained in:
parent
0dd8bc3e95
commit
0e022b2440
@ -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';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user