man rbuf_append (Fonctions bibliothèques) - append a value to an rbuf

NAME

rbuf_append* - append a value to an rbuf

SYNOPSIS

#include <roy.h>

void rbuf_append_rbuf (RBuf *buf, const RBuf *val);

void rbuf_append_str (RBuf *buf, const char *str);

void rbuf_append_char (RBuf *buf, char c);

void rbuf_append_data (RBuf *buf, const char *str, unsigned int len);

DESCRIPTION

The rbuf append code appends a value onto the end of buf. This may cause the buffer holding buf's data to be regrown. In every case the value is copied onto the end of buf.

A call to rbuf_append_rbuf(3) or rbuf_append_str(3) appends val or str to the end of buf, respectivly.

A call to rbuf_append_char(3) appends c to the end of buf. It accomplishes the same thing as calling rbuf_append_str(buf, "\c").

A call to rbuf_append_data(3) appends len bytes of str onto buf.

RETURN VALUE

These calls return no value.

ERRORS

These calls never fail.

FUNCTION

These calls are implemented using functions.

SEE ALSO