rbuf_append_data(3)

rbuf_append_data3

Append a value to an rbuf

Part of rbuf_append(3).

Usage

#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);

Overview

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.

Releases

2 releases since Debian 3.0 (Woody); the text changed 1 time.

  1. 3.0
  2. 3.1

From libroy-dev 1.0.8-1 in Debian 3.1 (Sarge). Parsed by carta from the page's man source.