TERMKEY_GE..._REMAINING(3)

πŸ’– TERMKEY_GE..._REMAINING(3) πŸ’–

okay bestie, so this is a page from the Library Functions Manual and it's literally called TERMKEY_GE..._REMAINING(3) β€” yes the name is squished with ellipsis dots, that's just how the man page header rolls, don't panic 🫢


✨ NAME ✨

termkey_get_buffer_remaining β€” returns the free buffer space πŸ’…


🌸 SYNOPSIS 🌸

#include <termkey.h>

size_t termkey_get_buffer_remaining(TermKey *tk);

Link with -ltermkey.


πŸ¦‹ DESCRIPTION πŸ¦‹

so termkey_get_buffer_remaining() hands you back the number of bytes of buffer space that are currently free inside your termkey(7) instance. that's it, that's the whole job, she's a one-trick pony and she ate πŸ’…βœ¨

those free bytes are yours to fill via termkey_push_bytes(3), or they might get filled up for you by termkey_advisereadable(3). either way, they're up for grabs πŸŽ€


⭐ RETURN VALUE ⭐

termkey_get_buffer_remaining() returns a size in bytes. slay. 🫢


πŸ”₯ SEE ALSO πŸ”₯


and that's the whole vibe bestie πŸ’– this was TERMKEY_GE..._REMAINING(3) from the Library Functions Manual β€” go forth and count your free bytes, no cap πŸ‘‘πŸŒˆ