man rbuf_str (Fonctions bibliothèques) - get the buffer from an rbuf
NAME
rbuf_str - get the buffer from an rbuf
rbuf_long - return float value of rbuf contents.
rbuf_float - return float value of rbuf contents.
SYNOPSIS
#include <roy.h>
char * rbuf_str (RBuf *buf);
long rbuf_long (RBuf *buf);
float rbuf_float (RBuf *buf);
DESCRIPTION
The rbuf structure is meant to be fully opaque to the programmer, and any access of the rbuf's buffer should be done using these calls. The return value of rbuf_str(3) does not always stay constant with some rbuf api calls, so programmers shouldn't keep long term references to the buffer.
rbuf_long(3) returns the integer value of buf. This is a macro wrapper around atol(3).
rbuf_float(3) returns the float value of buf. This is a macro wrapper around atof(3).
RETURN VALUE
rbuf_str(3) returns the buffer that the rbuf points to.
rbuf_long(3) and rbuf_float(3) return a long and float respectively.
ERRORS
These functions never err.
MACRO
These apis are all implemented using macros.
SEE ALSO
rbuf(3), rbuf_append(3), rbuf_append_char(3), rbuf_append_data(3), rbuf_append_rbuf(3), rbuf_append_sprintf(3), rbuf_append_str(3), rbuf_append_vsprintf(3), rbuf_auto(3), rbuf_down(3), rbuf_empty(3), rbuf_equal(3), rbuf_equal_data(3), rbuf_equal_rbuf(3), rbuf_equal_rbuf_len(3), rbuf_equal_rbufcase(3), rbuf_equal_str(3), rbuf_equal_str_len(3), rbuf_equal_strcase(3), rbuf_erase(3), rbuf_float(3), rbuf_free(3), rbuf_hash(3), rbuf_insert(3), rbuf_last(3), rbuf_len(3), rbuf_long(3), rbuf_new(3), rbuf_new_with_sprintf(3), rbuf_own(3), rbuf_prepend(3), rbuf_prepend_char(3), rbuf_prepend_data(3), rbuf_prepend_rbuf(3), rbuf_prepend_str(3), rbuf_rdonly(3), rbuf_set_to(3), rbuf_split(3), rbuf_sprintf(3), rbuf_truncate(3), rbuf_up(3), roy(3)