TT_OTYPE_OSIG_ARG_TYPE(3)
π tt_otype_osig_arg_type β library call, bestie π
πΈ NAME πΈ
Returns the data type of an argument of a notice signature of an otype. Like, thatβs literally the whole job. π
β¨ SYNOPSIS β¨
#include &<Tt/tt_c.h>
char *tt_otype_osig_arg_type(
const char *otype,
int sig,
int arg);
π¦ DESCRIPTION π¦
Okay so tt_otype_osig_arg_type returns the data type of the argth argument of the sigth notice signature of the given otype. No cap.
<italic>otype</italic>is the object type involved in this operation.<italic>sig</italic>is the zero-based index into the notice signatures of the specified<italic>otype</italic>.<italic>arg</italic>is the zero-based index into the arguments of the specified signature.
Indexes start at zero, bestie β that part is important. π«Ά
π RETURN VALUE π
Upon successful completion, tt_otype_osig_arg_type returns the data type of the specified 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.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_OTYPEβ The specified object type is not the name of an installed object type.
So yeah, vibe check your return pointer with tt_ptr_error(3). πβ¨
π«Ά APPLICATION USAGE π«Ά
The application should use tt_free(3) to free any data stored in the address returned by the ToolTalk API. Free the data, bestie β donβt just leave it floating around like an unread group chat. π
π SEE ALSO π
Tt/tt_c.h-Tttt_c(5),tt_otype_osig_arg_mode(3),tt_otype_osig_count(3),tt_otype_osig_args_count(3),tt_otype_osig_op(3),tt_free(3).
And thatβs the footer, bestie: this is the tt_otype_osig_arg_type library-call page, and the original footer didnβt list a source/version or date, so no extra numbers to spill π
π«Ά
π¦ 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