LIBRARY
-lvrbSYNOPSIS
#include <vrb.h>size_t vrb_put(vrb_p vrb, char *source, size_t size);
DESCRIPTION
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 vrbspecifies 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_tThe 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.