TT_MESSAGE_ABSTAINER(3)

πŸ“¦
version 2.5.3 Β· 2 versions
, in nixos 26.05

πŸ¦‹ tt_message_abstainer β€” library call, bestie πŸ¦‹

Okay so we’re in the library call page for tt_message_abstainer, and it’s highkey giving ToolTalk API main character energy πŸ’…. This one returns an offer’s nth abstaining procid, no cap.

🌸 NAME 🌸

tt_message_abstainer β€” return offer's nth abstaining procid. Periodt. ✨

πŸŽ€ SYNOPSIS πŸŽ€

#include &<Tt/tt_c.h>
char *tt_message_abstainer(
Tt_message m,
int n);

πŸ’– DESCRIPTION πŸ’–

Okay so the tt_message_abstainer function returns the procid of the nth abstainer of the specified message. Slay. πŸŽ€

Here’s the arg tea:

  • The m argument is the opaque handle for the message involved in this operation. Iconic.
  • The n argument is the number of the abstainer to be returned.

And the indexing? The first abstainer is numbered zero, bestie. Zero. Not one. Periodt. 🫢

πŸ”₯ RETURN VALUE πŸ”₯

Upon successful completion, the tt_message_abstainer function returns the procid of the nth abstainer. The application can use tt_ptr_error to extract one of the following Tt_status values from the returned pointer:

  • TT_OK β€” the operation completed successfully. We love a clean win πŸ’….
  • TT_ERR_PROCID β€” there is no valid default procid, perhaps because tt_open has not yet been called. Not me forgetting tt_open 😭.
  • TT_ERR_NUM β€” the integer value passed was invalid (out of range). Number said β€œnot today” πŸ’€.
  • TT_ERR_STATE β€” the specified message is not in state TT_RETURNED. Since only TT_OFFERs can be in state TT_RETURNED, this status will be returned if the specified message is a TT_NOTICE or a TT_REQUEST.
  • TT_ERR_POINTER β€” the pointer passed does not point to an object of the correct type for this operation. Wrong-type vibe check failed, ngl 🚫.

🌈 APPLICATION USAGE 🌈

The application can use tt_free to free any data stored in the address returned by the ToolTalk API. Yes bestie, clean up after yourself β€” tt_free is the moment 🧚.

⭐ SEE ALSO ⭐


Byeee 🫢 source/version: tt_message_abstainer(library call); date: this page’s footer didn’t print one, so I’m not inventing a date, bestie πŸ’…βœ¨

πŸ“¦ where this page comes from