vrb_space_len(3)

vrb_space_len3

Return the length of space

Usage

#include <vrb.h>

size_t vrb_space_len(vrb_p vrb);

Library

-lvrb

Overview

vrb_space_len returns the total length of space available in the given virtual ring buffer. This is the maximum space the caller may store into the buffer from the pointer returned by vrb_space_ptr(3).

Arguments

vrb_p vrb
specifies the virtual ring buffer to obtain the length of available space in. If a NULL or invalid pointer is given, results are unpredictable and are likely to be disasterous.

Return value

size_t
The length of available space in the virtual ring buffer is returned.

Releases

Unchanged in 2 releases since Debian 6.0 (Squeeze).

  1. 6.0–7

From libvrb0-dev 0.5.1-5.1 in Debian 7 (Wheezy). Parsed by carta from the page's man source.