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)) | 		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'; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue