+ /* loop through the whole file */
+ cur = 0;
+ while (cur < bufsize) {
+ count = buf_get_line(buf, bufsize, cur);
+ bufline = &buf[cur];
+ cur += count+1;
+
+ if (count >= LINE_SIZE)
+ continue;
+
+ strncpy(line, bufline, count);
+ line[count] = '\0';
+ pos = line;