man rbuf_prepend (Fonctions bibliothèques) - prepend a value to an rbuf.

NAME

rbuf_prepend_* - prepend a value to an rbuf.

SYNOPSIS

#include <roy.h>

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

void rbuf_prepend_char (RBuf *buf, char c);

void rbuf_prepend_rbuf (RBuf *buf, const RBuf *newbuf);

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

DESCRIPTION

Prepend various types to an already existing RBuf buf. This may cause the buffer holding buf's data to be regrown. In every case the value is inserted to the beginning of buf and existing data in buf is moved after this new data.

A call to rbuf_prepend_str prepends a string str to the beginning of buf.

A call to rbuf_prepend_char prepends the character c to the beginning of buf.

A call to rbuf_prepend_rbuf prepends the RBuf newbuf to the beginning of buf.

A call to rbuf_prepend_data prepends len byte of str to the beginning of buf.

RETURN VALUE

These calls return no value.

ERRORS

These calls never fail.

FUNCTION

These calls are implemented using functions.

SEE ALSO