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

Diff for /src/usr.bin/xstr/Attic/xstr.c between version 1.17 and 1.18

version 1.17, 2011/04/06 11:36:26 version 1.18, 2013/11/26 21:08:09
Line 173 
Line 173 
                         break;                          break;
                 }                  }
                 if (linebuf[0] == '#') {                  if (linebuf[0] == '#') {
                         if (linebuf[1] == ' ' && isdigit(linebuf[2]))                          if (linebuf[1] == ' ' &&
                               isdigit((unsigned char)linebuf[2]))
                                 printf("#line%s", &linebuf[1]);                                  printf("#line%s", &linebuf[1]);
                         else                          else
                                 printf("%s", linebuf);                                  printf("%s", linebuf);
Line 282 
Line 283 
 octdigit(char c)  octdigit(char c)
 {  {
   
         return (isdigit(c) && c != '8' && c != '9');          return (isdigit((unsigned char)c) && c != '8' && c != '9');
 }  }
   
 void  void

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18