man rbuf_len (Fonctions bibliothèques) - get the len of an rbuf

NAME

rbuf_len - get the len of an rbuf

SYNOPSIS

#include <roy.h>

unsigned int rbuf_len (RBuf *buf);

DESCRIPTION

This returns the length of the buffer held by buf. This length doesn't include the protective '\0' byte one past the appearent end of the buffer. See rbuf(3) for more details. This call acts much like strlen(3) in that it doesn't count the terminating '\0', but rbuf_len(3) is faster and can't overrun the buffer. It will also return the full length of the buffer, even if '\0' characters (possible with binary data) are included in the buffer.

RETURN VALUE

Returns the length of the buffer held by buf.

ERRORS

Calls to rbuf_len(3) can never fail.

MACRO

The rbuf_len(3) api is implemented using a macro.

SEE ALSO