[BACK]Return to strings.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / strings

Diff for /src/usr.bin/strings/Attic/strings.c between version 1.12 and 1.13

version 1.12, 2003/10/02 05:10:03 version 1.13, 2008/04/23 01:02:19
Line 195 
Line 195 
                                 hcnt = 0;                                  hcnt = 0;
                 }                  }
 start:  start:
                 for (cnt = 0; (ch = getch()) != EOF;) {                  for (cnt = 0, C = bfr; (ch = getch()) != EOF;) {
                         if (ISSTR(ch)) {                          if (ISSTR(ch)) {
                                 if (!cnt)  
                                         C = bfr;  
                                 *C++ = ch;                                  *C++ = ch;
                                 if (++cnt < minlen)                                  if (++cnt < minlen)
                                         continue;                                          continue;
Line 235 
Line 233 
                                 ;                                  ;
                         }                          }
                         cnt = 0;                          cnt = 0;
                           C = bfr;
                 }                  }
 nextfile: ;  nextfile: ;
         } while (*argv);          } while (*argv);

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13