rbuf_set_to(3)

rbuf_set_to3

Reset an rbuf to a new value

Usage

#include <roy.h>

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

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

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

Overview

These api calls reset buf to new a new value.

The rbuf_set_to_rbuf(3) and rbuf_set_to_str(3) set buf to copies of val and str, respectivly.

The rbuf_set_to_data(3) call copies len bytes out of str into 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.