TT_PATTERN_USER_SET(3)
π tt_pattern_user_set π
okay so this is the library call page for tt_pattern_user_set, and she is lowkey iconic. bestie, we are storing info in the user data cells of a pattern object. no cap, thatβs the whole vibe check.
π NAME π
tt_pattern_user_set β store information in the user data cells of a pattern object. periodt. π
β¨ SYNOPSIS β¨
#include &<Tt/tt_c.h>
Tt_status tt_pattern_user_set(
Tt_pattern p,
int key,
void *v);
π¦ DESCRIPTION π¦
The tt_pattern_user_set function stores information in the user data cells associated with the specified pattern object. main character energy, honestly.
The p argument is a unique handle for a message pattern. This handle is returned after tt_pattern_create(3) is called. The key argument is the specified user data cell. The value for each data cell must be unique for this pattern β not me being dramatic, itβs literally the rule. The v argument is the data cell, a piece of arbitrary user data that can hold a void *.
bestie, that uniqueness rule is real: the value for each data cell must be unique for this pattern. no duplicate-cell shenanigans. π«Ά
π RETURN VALUE π
Upon successful completion, tt_pattern_user_set 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_POINTERβ the pointer passed does not point to an object of the correct type for this operation. π
π SEE ALSO π
Tt/tt_c.h-Tttt_c(5),tt_pattern_user(3),tt_pattern_create(3).
xoxo π β this has been tt_pattern_user_set, a library call original. The footer didnβt come with a source/version/date stamp to hype up, so consider this the sparkly sign-off instead. π«Ά
π¦ 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