rbuf_erase3
Remove portions of an rbuf.
Usage
#include <roy.h>
void rbuf_erase (RBuf *buf, unsigned int pos, unsigned int len);
Overview
rbuf_erase(3) is used to remove portions of the buffer stored in an rbuf. buf is the rbuf on which to do the operation. pos is the starting index into the buffer you wish to begin removing at, and len is the length of the portion to be removed.
Return value
There is no return value for rbuf_erase(3). If the portion to be removed is out of bounds, no action is taken - the buffer will remain untouched.
Errors
These calls do not error.
Function
rbuf_erase(3) is implemented with a function.
See also
rbuf(3)
a robust string implementation
rbuf_append(3)
append a value to an rbuf
rbuf_append_char(3)
append a value to an rbuf
rbuf_append_data(3)
append a value to an rbuf
rbuf_append_rbuf(3)
append a value to an rbuf
rbuf_append_sprintf(3)
creating formatted rbuf's
rbuf_append_str(3)
append a value to an rbuf
rbuf_append_vsprintf(3)
creating formatted rbuf's
rbuf_auto(3)
create a volatile rbuf from static string
rbuf_down(3)
convert each character to lower case
rbuf_empty(3)
find out if an rbuf is holding anything
rbuf_equal(3)
equivalance checks for rbufs
rbuf_equal_data(3)
equivalance checks for rbufs
rbuf_equal_rbuf(3)
equivalance checks for rbufs
rbuf_equal_rbuf_len(3)
equivalance checks for rbufs
rbuf_equal_rbufcase(3)
equivalance checks for rbufs
rbuf_equal_str(3)
equivalance checks for rbufs
rbuf_equal_str_len(3)
equivalance checks for rbufs
rbuf_equal_strcase(3)
equivalance checks for rbufs
rbuf_float(3)
get the buffer from an rbuf rbuf_long - return float value of rbuf contents. rbuf_float - return float value of rbuf contents.
rbuf_free(3)
free an rbuf
rbuf_hash(3)
string hash functions optimized for rbufs
rbuf_insert(3)
insert a value into an rbuf
rbuf_last(3)
get the last byte of an rbuf's buffer.
rbuf_len(3)
get the len of an rbuf
rbuf_long(3)
get the buffer from an rbuf rbuf_long - return float value of rbuf contents. rbuf_float - return float value of rbuf contents.
rbuf_new(3)
the rbuf allocation api
rbuf_new_with_sprintf(3)
creating formatted rbuf's
rbuf_own(3)
rbuf ownership
rbuf_prepend(3)
prepend a value to an rbuf.
rbuf_prepend_char(3)
prepend a value to an rbuf.
rbuf_prepend_data(3)
prepend a value to an rbuf.
rbuf_prepend_rbuf(3)
prepend a value to an rbuf.
rbuf_prepend_str(3)
prepend a value to an rbuf.
rbuf_rdonly(3)
get and set read-write status for an rbuf
rbuf_set_to(3)
reset an rbuf to a new value
rbuf_split(3)
split an rbuf into an rlist of rbufs
rbuf_sprintf(3)
creating formatted rbuf's
rbuf_str(3)
get the buffer from an rbuf rbuf_long - return float value of rbuf contents. rbuf_float - return float value of rbuf contents.
rbuf_truncate(3)
change the length of an rbuf's buffer
rbuf_up(3)
convert each character to upper case
roy(3)
the roy library
Mentioned on this page
Referred to by
rbuf(3)
a robust string implementation
rbuf_up(3)
convert each character to upper case
rbuf_len(3)
get the len of an rbuf
rbuf_new(3)
the rbuf allocation api
rbuf_own(3)
rbuf ownership
rbuf_str(3)
get the buffer from an rbuf rbuf_long - return float value of rbuf contents. rbuf_float - return float value of rbuf contents.
rbuf_auto(3)
create a volatile rbuf from static string
rbuf_down(3)
convert each character to lower case
rbuf_free(3)
free an rbuf
rbuf_hash(3)
string hash functions optimized for rbufs
rbuf_last(3)
get the last byte of an rbuf's buffer.
rbuf_long(3)
get the buffer from an rbuf rbuf_long - return float value of rbuf contents. rbuf_float - return float value of rbuf contents.
rbuf_empty(3)
find out if an rbuf is holding anything
rbuf_equal(3)
equivalance checks for rbufs
rbuf_float(3)
get the buffer from an rbuf rbuf_long - return float value of rbuf contents. rbuf_float - return float value of rbuf contents.
rbuf_split(3)
split an rbuf into an rlist of rbufs
rbuf_append(3)
append a value to an rbuf
rbuf_insert(3)
insert a value into an rbuf
rbuf_rdonly(3)
get and set read-write status for an rbuf
rbuf_set_to(3)
reset an rbuf to a new value
rbuf_prepend(3)
prepend a value to an rbuf.
rbuf_sprintf(3)
creating formatted rbuf's
rbuf_truncate(3)
change the length of an rbuf's buffer
rbuf_equal_str(3)
equivalance checks for rbufs
rbuf_append_str(3)
append a value to an rbuf
rbuf_equal_data(3)
equivalance checks for rbufs
rbuf_equal_rbuf(3)
equivalance checks for rbufs
rbuf_append_char(3)
append a value to an rbuf
rbuf_append_data(3)
append a value to an rbuf
rbuf_append_rbuf(3)
append a value to an rbuf
rbuf_prepend_str(3)
prepend a value to an rbuf.
rbuf_prepend_char(3)
prepend a value to an rbuf.
rbuf_prepend_data(3)
prepend a value to an rbuf.
rbuf_prepend_rbuf(3)
prepend a value to an rbuf.
rbuf_equal_str_len(3)
equivalance checks for rbufs
rbuf_equal_strcase(3)
equivalance checks for rbufs
rbuf_append_sprintf(3)
creating formatted rbuf's
rbuf_equal_rbuf_len(3)
equivalance checks for rbufs
rbuf_equal_rbufcase(3)
equivalance checks for rbufs
rbuf_append_vsprintf(3)
creating formatted rbuf's
rbuf_new_with_sprintf(3)
creating formatted rbuf's