TT_OTYPE_IS_DERIVED(3)
π tt_otype_is_derived
okay so bestie, this one lives in the library call section of the manual (that's the manual name, keep it in your notes π) and honestly it's giving "small function, big family tree energy." Let's get into it β¨
β¨ NAME β¨
tt_otype_is_derived β it tells you about the otype derivations π§¬πΈ
β¨ SYNOPSIS β¨
#include &<Tt/tt_c.h>
int tt_otype_is_derived(
const char *derivedotype,
const char *baseotype);
like, that's the whole vibe. two strings in, an int out, no drama π
πΈ DESCRIPTION πΈ
So tt_otype_is_derived specifies whether the derived otype is derived directly or indirectly from the base otype. basically: is this one descended from that one, or not π no cap, indirect counts too β it's not just checking the immediate parent, it's checking the whole ancestry situation π§¬β¨
The derivedotype argument is the specified derived otype. The baseotype argument is the specified base otype. one is the lil baby otype, one is the ancestor, and this function does the vibe check on their relationship π¦
π RETURN VALUE π
Upon successful completion, the tt_otype_is_derived function returns 1 if the derivedotype is derived directly or indirectly from baseotype; otherwise, it returns zero. slay π (yes, "zero" β that's a no from the function, respectfully π)
Your app can use tt_int_error(3) to extract one of these Tt_status values from the returned integer:
TT_OKβ The operation completed successfully. we love a clean win β¨TT_ERR_NOMPβ Thettsession(1)process is not running and the ToolTalk service cannot restart it. π that's rough bestieTT_ERR_OTYPEβ The specified object type is not the name of an installed object type. π rip, that otype doesn't exist here
π¦ SEE ALSO π¦
Tt/tt_c.h-Tttt_c(5)tt_otype_deriveds_count(3)tt_otype_base(3)tt_otype_derived(3)tt_spec_type(3)tt_message_otype(3)tt_int_error(3)
like the whole otype friend group fr fr π«Ά go read them too, iykyk π
π§ quick reminder bestie: read the return value and the tt_int_error(3) status, don't just assume. periodt.
and that's the page! π it's from the tt_otype_is_derived(library call) manual, and the footer was literally just tt_otype_is_derived(library call) again β so consider this your cute sign-off, mwah ππβ
π¦ 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