fmt.c (e6c267f18cf334713acda85263db0cf855b9d989) | fmt.c (003aaef883db5f18fd43cfb6cc019383d681221b) |
---|---|
1/* 2 * Copyright (c) 1980, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 158 unchanged lines hidden (view full) --- 167 } 168 if (!isprint(c) && c != '\t') { 169 c = getc(fi); 170 continue; 171 } 172 *cp++ = c; 173 c = getc(fi); 174 } | 1/* 2 * Copyright (c) 1980, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 158 unchanged lines hidden (view full) --- 167 } 168 if (!isprint(c) && c != '\t') { 169 c = getc(fi); 170 continue; 171 } 172 *cp++ = c; 173 c = getc(fi); 174 } |
175 *cp = '\0'; | |
176 177 /* 178 * Toss anything remaining on the input line. 179 */ 180 while (c != '\n' && c != EOF) 181 c = getc(fi); 182 | 175 176 /* 177 * Toss anything remaining on the input line. 178 */ 179 while (c != '\n' && c != EOF) 180 c = getc(fi); 181 |
182 if (cp != NULL) { 183 *cp = '\0'; 184 } else { 185 putchar('\n'); 186 c = getc(fi); 187 continue; 188 } 189 |
|
183 /* 184 * Expand tabs on the way to canonb. 185 */ 186 col = 0; 187 cp = linebuf; 188 cp2 = canonb; 189 while (cc = *cp++) { 190 if (cc != '\t') { --- 305 unchanged lines hidden --- | 190 /* 191 * Expand tabs on the way to canonb. 192 */ 193 col = 0; 194 cp = linebuf; 195 cp2 = canonb; 196 while (cc = *cp++) { 197 if (cc != '\t') { --- 305 unchanged lines hidden --- |