man rbuf_last (Fonctions bibliothèques) - get the last byte of an rbuf's buffer.

NAME

rbuf_last - get the last byte of an rbuf's buffer.

SYNOPSIS

#include <roy.h>

char rbuf_last (RBuf *buf);

DESCRIPTION

Retrieves the last character of the rbuf's buffer.

RETURN VALUE

Calls to rbuf_last(3) return a single character which is a copy of the last character in the rbuf's buffer (before the hidden '\0').

ERRORS

Calls to rbuf_last(3) never fail.

MACRO

rbuf_last(3) is implemented using a macro.

SEE ALSO