TT_MESSAGE_ARG_TYPE(3)

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

bestie, welcome to the tt_message_arg_type(library call) manual page β€” yes, that's the manual name, and we're getting into it πŸ’–

🌸 NAME 🌸

tt_message_arg_type β€” retrieve the type of a message argument. iconic little lookup behavior, no cap ✨

πŸŽ€ SYNOPSIS πŸŽ€

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

πŸ¦‹ DESCRIPTION πŸ¦‹

The tt_message_arg_type function retrieves the type of the nth message argument. literally its whole job πŸ’…

The m argument is the opaque handle for the message involved in this operation. The n argument is the number of the argument to be retrieved. The first argument is numbered zero β€” yes bestie, zero-indexed, we love to see it 🫢

⭐ RETURN VALUE ⭐

Upon successful completion, the tt_message_arg_type function returns the type of the nth message argument. The application can use tt_ptr_error(3) to extract one of the following Tt_status values from the returned pointer:

  • TT_OK β€” the operation completed successfully. slay βœ…
  • TT_ERR_NOMP β€” the ttsession(1) process is not running and the ToolTalk service cannot restart it. 😭
  • TT_ERR_NUM β€” the integer value passed was invalid (out of range). not the range check catching you πŸ’€
  • TT_ERR_POINTER β€” the pointer passed does not point to an object of the correct type for this operation. wrong-type vibes, rejected πŸ™ˆ

πŸ’œ APPLICATION USAGE πŸ’œ

The application can use tt_free(3) to free any data stored in the address returned by the ToolTalk API. cleanup era, bestie 🧹✨


🌈 SEE ALSO 🌈

and that's the whole page, bestie β€” the footer/source-version-date slot is just tt_message_arg_type(library call) doing an encore, with no separate version or date tea beyond that. periodt πŸ’…πŸ«Ά

πŸ“¦ where this page comes from