NAME

catbuf_pos - get index position of a data buffer

SYNOPSIS

#include <cat.h>

int catbuf_pos(cat_buffer *b);

DESCRIPTION

Get the current index position of buffer b.

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

RETURN VALUES

Returns the current index of the buffer.

SEE ALSO

cat, catbuf, catbuf_ch, catbuf_index, catbuf_len