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

Diff for /src/usr.bin/fsplit/Attic/fsplit.c between version 1.9 and 1.10

version 1.9, 2002/02/16 21:27:46 version 1.10, 2002/02/25 00:04:09
Line 273 
Line 273 
 int  int
 getline()  getline()
 {  {
           int c;
         char *ptr;          char *ptr;
   
         for (ptr = buf; ptr < &buf[BSZ];) {          for (ptr = buf; ptr < &buf[BSZ];) {
                 *ptr = getc(ifp);                  c = getc(ifp);
                   *ptr = c;
                 if (feof(ifp))                  if (feof(ifp))
                         return (-1);                          return (-1);
                 if (*ptr++ == '\n') {                  if (*ptr++ == '\n') {

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10