deps/kb_meme/meme-5.0.1/src/buffer.c
/*
 * buf_skip
 * moves the position forward by the specified number of characters
 * dies if skip is negative or the new position would be past the limit
 */
buf_skip
moves the position forward by the specified number of characters
dies if skip is negative or the new position would be past the limit
buf_skip moves the position forward by the specified number of characters dies if skip is negative or the new position would be past the limit
void buf_skip(BUF_T *buf, int skip) {
  if (skip < 0) {
    die("buf_skip: skip (%d) must be positive\n", skip);
  }
  if (buf->position + skip > buf->limit) {
    die("buf_skip: can't skip (%d + %d) past the limit (%d)\n", 
        buf->position, skip, buf->limit);
  }
  buf->position += skip;
}
void buf_skip ( BUF_T * buf , int skip ) { if ( skip < 0 ) { die ( " \n " , skip ) ; } if ( buf -> position + skip > buf -> limit ) { die ( " \n " , buf -> position , skip , buf -> limit ) ; } buf -> position += skip ; }
buf_skip
 moves the position forward by the specified number of characters
 dies if skip is negative or the new position would be past the limit
buf_skip moves the position forward by the specified number of characters dies if skip is negative or the new position would be past the limit