code improvement
This commit is contained in:
		
							parent
							
								
									5f6b6651e1
								
							
						
					
					
						commit
						88eaeed762
					
				
					 1 changed files with 4 additions and 11 deletions
				
			
		|  | @ -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…
	
	Add table
		
		Reference in a new issue