deps/kb_meme/meme-5.0.1/src/buffer.c
/*
 * buf_consume
 * Skips over any delimiters that are at the front of the buffer.
 * returns the number of delimiters skipped
 */
buf_consume
Skips over any delimiters that are at the front of the buffer.
returns the number of delimiters skipped
buf_consume Skips over any delimiters that are at the front of the buffer . returns the number of delimiters skipped
int buf_consume(BUF_T *buf, int (*is_delim)(void*, int), void* config, bool negate_is_delim) {
  int index, count;
  index = buf_find_next(buf, is_delim, config, !negate_is_delim);
  if (index == -1) index = buf->limit;
  count = index - buf->position;
  buf->position = index;
  return count;
}
int buf_consume ( BUF_T * buf , int ( * is_delim ) ( void * , int ) , void * config , bool negate_is_delim ) { int index , count ; index = buf_find_next ( buf , is_delim , config , ! negate_is_delim ) ; if ( index == -1 ) index = buf -> limit ; count = index - buf -> position ; buf -> position = index ; return count ; }
buf_consume
 Skips over any delimiters that are at the front of the buffer.
buf_consume Skips over any delimiters that are at the front of the buffer .