vrb_put(3)

vrb_put3

Put data into a vrb

Usage

#include <vrb.h>

size_t vrb_put(vrb_p vrb, char *source, size_t size);

Library

-lvrb

Overview

vrb_put puts caller provided data into a virtual ring buffer. If less space is available in the virtual ring buffer, then only as much will be copied as can be fit in.

Arguments

vrb_p vrb
specifies which virtual ring buffer.

char *source
specifies the location where to copy the data from.

size_t size
specifies the length of data provided by the caller.

Return value

size_t
The actual length of data copied is returned, which can be any value from 0 to the specified size.

Errors

If an error is returned, then errno will have the following value:

EINVAL

An invalid virtual ring buffer pointer was specified.

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.