deps/kb_meme/meme-5.0.1/src/buffer.c
/*
 * buf_getc
 * returns the next avaliable character as unsigned char 
 * or -1 if no more characters
 */
buf_getc
returns the next avaliable character as unsigned char
or -1 if no more characters
buf_getc returns the next avaliable character as unsigned char or - 1 if no more characters
int buf_getc(BUF_T *buf) {
  int rvalue;
  if (buf->position < buf->limit) {
    rvalue = (((unsigned char*)buf->buffer)[buf->position]);
    buf->position += 1;
  } else {
    rvalue = -1;
  }
  return rvalue;
}
int buf_getc ( BUF_T * buf ) { int rvalue ; if ( buf -> position < buf -> limit ) { rvalue = ( ( ( unsigned char * ) buf -> buffer ) [ buf -> position ] ) ; buf -> position += 1 ; } else { rvalue = -1 ; } return rvalue ; }
buf_getc
 returns the next avaliable character as unsigned char
 or -1 if no more characters
buf_getc returns the next avaliable character as unsigned char or - 1 if no more characters