NAME

catbuf_index - set index pointer of a data buffer

SYNOPSIS

#include <cat.h>

int catbuf_index(cat_buffer *b, int offset);

DESCRIPTION

catbuf_index() sets the index pointer of buffer b to offset.

This function, together with catbuf_ch(), cabuf_len(), and catbuf_pos(), are the low-level selectors and modifiers for data buffers.

RETURN VALUES

Returns the new index if successful, or a negative code on error.

SEE ALSO

cat, catbuf

catbuf_ch, catbuf_len, catbuf_pos