size_t vrb_put(vrb_p vrb, char *source, size_t size);
DESCRIPTIONvrb_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.
specifies which virtual ring buffer.
specifies the location where to copy the data from.
specifies the length of data provided by the caller.
The actual length of data copied is returned, which can be any value from 0 to the specified size.
ERRORSIf an error is returned, then errno will have the following value:
- An invalid virtual ring buffer pointer was specified.