deps/kb_meme/meme-5.0.1/src/buffer.c
/*
 * buf_set_position
 * sets the current reading/writing position
 * the new positon must non-negative 
 * and not larger than the limit
 */
buf_set_position
sets the current reading/writing position
the new positon must non-negative
and not larger than the limit
buf_set_position sets the current reading / writing position the new positon must non - negative and not larger than the limit
void buf_set_position(BUF_T *buf, int position) {
  if (position < 0 || position > buf->limit) {
    die("Position out of bounds\n");
  }
  if (buf->mark > position) buf->mark = -1;
  buf->position = position;
}
void buf_set_position ( BUF_T * buf , int position ) { if ( position < 0 || position > buf -> limit ) { die ( " \n " ) ; } if ( buf -> mark > position ) buf -> mark = -1 ; buf -> position = position ; }
buf_set_position
 sets the current reading/writing position
 the new positon must non-negative
 and not larger than the limit
buf_set_position sets the current reading / writing position the new positon must non - negative and not larger than the limit