TT_MESSAGE_ARG_BVAL(3)
π tt_message_arg_bval
Library call page, bestie β that's the manual-name energy right there. This one is all about grabbing the byte-array value of a message argument. No cap.
πΈ NAME πΈ
tt_message_arg_bval β retrieve the byte-array value of a message argument. Periodt.
β¨ SYNOPSIS β¨
#include &<Tt/tt_c.h>
Tt_status tt_message_arg_bval(
Tt_message m,
int n,
unsigned char **value,
int *len);
π¦ DESCRIPTION π¦
Okay so tt_message_arg_bval retrieves the byte-array value of the nth message argument. Main character function behavior, truly.
mβ the opaque handle for the message involved in this operation.nβ the number of the argument to be retrieved. The first argument is numbered zero, so yes, we're doing zero-based indexing, bestie.valueβ the address of a character pointer to which the ToolTalk service is to point a string that contains the contents of the argument.lenβ the address of an integer to which the ToolTalk service is to set the length of the value in bytes.
π RETURN VALUE π
Upon successful completion, tt_message_arg_bval returns the status of the operation as one of the following Tt_status values:
TT_OKβ The operation completed successfully. Slay.TT_ERR_NOMPβ Thettsession(1)process is not running and the ToolTalk service cannot restart it.TT_ERR_NUMβ The integer value passed was invalid (out of range).TT_ERR_POINTERβ The pointer passed does not point to an object of the correct type for this operation.
Fr fr, those are the statuses β don't sleep on TT_ERR_NOMP, it's giving "no session, no service, no vibes."
π₯ SEE ALSO π₯
Tt/tt_c.h-Tttt_c(5). Go read those, iykyk.
Cute sign-off time: the footer just repeats tt_message_arg_bval(library call) again, with no separate source/version or date line on this page β so that's the whole library-call moment. π
β¨
π¦ 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