deps/kb_meme/meme-5.0.1/src/buffer.c
/*
 * buf_fread_next_line
 * reads until the start of a new line is in the buffer
 * returns the number of characters skipped.
 */
buf_fread_next_line
reads until the start of a new line is in the buffer
returns the number of characters skipped.
buf_fread_next_line reads until the start of a new line is in the buffer returns the number of characters skipped .
int buf_fread_next_line(BUF_T *buf, FILE *fp) {
  int len, total;
  len = buf_fread_consume(buf, fp, is_newline, NULL, true);
  if (len == -1) return -1;
  total = len;
  len = buf_fread_consume(buf, fp, is_newline, NULL, false);
  if (len == -1) return -1;
  total += len;
  return total;
}
int buf_fread_next_line ( BUF_T * buf , FILE * fp ) { int len , total ; len = buf_fread_consume ( buf , fp , is_newline , NULL , true ) ; if ( len == -1 ) return -1 ; total = len ; len = buf_fread_consume ( buf , fp , is_newline , NULL , false ) ; if ( len == -1 ) return -1 ; total += len ; return total ; }
buf_fread_next_line
 reads until the start of a new line is in the buffer
 returns the number of characters skipped.
buf_fread_next_line reads until the start of a new line is in the buffer returns the number of characters skipped .
//consume the rest of the line