Révision 304 approxBasisSollya/read-lines-from-file.c

read-lines-from-file.c (revision 304)
80 80
  {
81 81
    #ifndef NDEBUG
82 82
    fprintf(stderr,
83
            "\n%s: requested line inted (%d) is beyhond\n",
83
            "\n%s: requested line (%d) is beyond\n",
84 84
            __func__,
85 85
            lineIndex);
86 86
    fprintf(stderr,
......
89 89
    #endif
90 90
    return NULL;
91 91
  }
92
  return linesRead->lines + lineIndex * linesRead->linesLenght;
92
  return linesRead->lines + lineIndex * linesRead->linesLength;
93 93
} /* End rlff_get_line_at. */
94 94

  
95 95
/** @see read-lines-from-file.h#rlff_print_lines */
......
189 189
  }
190 190

  
191 191
  linesRead->linesNum     = rlffLinesCount;
192
  linesRead->linesLenght  = rlffLinesLength;
192
  linesRead->linesLength  = rlffLinesLength;
193 193
  if ((rlffLinesCount == 0) || (rlffLinesLength == 0))
194 194
  {
195 195
    /* The file is somehow empty: not an actual error. */
196 196
    linesRead->linesNum     = 0;
197
    linesRead->linesLenght  = 0;
197
    linesRead->linesLength  = 0;
198 198
    linesRead->lines        = NULL;
199 199
    return linesRead;
200 200
  }
......
279 279
          break;
280 280
        }
281 281
      } /* End while. */
282
      bufferCurrentLinePtr += linesRead->linesLenght;
282
      bufferCurrentLinePtr += linesRead->linesLength;
283 283
      bufferCurrentCharPtr = bufferCurrentLinePtr;
284 284
    } /* End c == '\n'. */
285 285
  } /* End main while; ancillary*/

Formats disponibles : Unified diff