buff_getc()

Get a character from the circular buffer

Synopsis:

int buff_getc( buffer_t *bptr );

Description:

This function retrieves a character from the circular buffer bptr, removing it from the buffer in the process.

Returns:

The character currently at the head of the circular buffer bptr, or -1 if the buffer is empty.

Classification:

QNX

Safety:
Interrupt handler Not applicable
Signal handler Not applicable
Thread Not applicable

See also:

buff_append(), buff_create(), buff_delete(), buff_flush(), buff_putc(), buff_waiting()