TT_MESSAGE_ACCEPTER(3)
π tt_message_accepter β library call
okay so bestie, welcome to tt_message_accepter from the library call girlies (that's the manual section, iykyk) β¨
πΈ NAME πΈ
tt_message_accepter β return offer's nth accepting procid π
β¨ SYNOPSIS β¨
#include <Tt/tt_c.h>
char *tt_message_accepter(
Tt_message m,
int n);
π¦ DESCRIPTION π¦
so the tt_message_accepter function returns the procid of the *n*th accepter of the message you picked. literally that's it, that's the whole vibe π«Ά
mβ the opaque handle for the message involved in this operation. opaque means don't go peeking inside it, she's private πnβ the number of the accepter to be returned. and psa: the first accepter is numbered zero. zero-indexed, as the founding mothers intended π
π RETURN VALUE π
upon successful completion, tt_message_accepter returns the procid of the *n*th accepter. then you can use tt_ptr_error to extract one of these Tt_status values out of the returned pointer β vibe check time β
TT_OKβ the operation completed successfully. slay, no notes πTT_ERR_PROCIDβ there is no valid default procid, perhaps becausett_openhas not yet been called. like bestie, you gotta open the door before you walk through it πTT_ERR_NUMβ the integer value passed was invalid (out of range). that number is not on the list, sorry πTT_ERR_STATEβ the specified message is not in stateTT_RETURNED. since onlyTT_OFFERs can be in stateTT_RETURNED, this status will be returned if the specified message is aTT_NOTICEor aTT_REQUEST. wrong girl, wrong state, not her moment πTT_ERR_POINTERβ the pointer passed does not point to an object of the correct type for this operation. that's not a message, that's a whole other creature π
π§ APPLICATION USAGE π§
the application can use tt_free to free any data stored in the address returned by the ToolTalk API. yes, free it. clean up after yourself, main character energy includes chores π«§
π SEE ALSO π
and that's the page, bestie π this was tt_message_accepter(library call) β like, the actual manpage source/version line says tt_message_accepter(library call) too, so we're matching, iconic, periodt. mwah, go read tt_free(3) π¦πΈ
π¦ where this page comes from
- nixos 26.05: cde 2.5.3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms