termkey_get_buffer_remaining3
Returns the free buffer space
Usage
#include <termkey.h> size_t termkey_get_buffer_remaining(TermKey *tk);
Link with -ltermkey.
Overview
termkey_get_buffer_remaining() returns the number of bytes of buffer space currently free in the termkey(7) instance. These bytes are free to use by termkey_push_bytes(3), or may be filled by termkey_advisereadable(3).
Return value
termkey_get_buffer_remaining() returns a size in bytes.