rb_count(3)

bofc manual pages

rb_count(3)



 

NAME

rb_space, rb_count - get count information for ring buffer  

SYNOPSIS

#include <librb.h>

long rb_count(struct rb *rb);
long rb_space(struct rb *rb);  

RETURN VALUES

rb_count(3) returns number of elements that are currently stored in buffer, and rb_space(3) returns number of how many elements you can put on the buffer.  

ERRORS

EINVAL
Passed rb object is invalid.
 

SEE ALSO

rb_overview(7), rb_new(3), rb_init(3), rb_destroy(3), rb_cleanup(3), rb_discard(3), rb_stop(3), rb_stop_signal(3), rb_read(3), rb_recv(3), rb_write(3), rb_send(3), rb_posix_read(3), rb_posix_recv(3), rb_posix_write(3), rb_posix_send(3), rb_clear(3), rb_header_size(3), rb_array_size(3), rb_version(3)

bofc.pl

23 October 2018 (v1.1.0)

rb_count(3)