TT_OTYPE_DERIVED(3)
π
tt_otype_derived π
okay so bestie, this is the library call manual page for tt_otype_derived β and yes, it's giving very specific Unix gremlin energy, but we love that for us π«Ά.
πΈ NAME πΈ
tt_otype_derived β return the ith otype derived from the given otype. no cap, that's literally the whole job π
β¨ SYNOPSIS β¨
#include &<Tt/tt_c.h>
char *tt_otype_derived(
const char *otype,
int i);
π¦ DESCRIPTION π¦
so the tt_otype_derived function returns the ith otype derived from the given otype. iconic behavior, honestly β¨
the otype argument is the object type involved in this operation. and the i argument is the zero-based index into the otypes derived from the given otype β zero-based, bestie, so index 0 is the first one, not index 1. iykyk π
π₯ RETURN VALUE π₯
upon successful completion, the tt_otype_derived function returns the name of the ith otype derived from the given otype. slay π
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. periodt πTT_ERR_NOMPβ thettsession(1)process is not running and the ToolTalk service cannot restart it. πTT_ERR_OTYPEβ the specified object type is not the name of an installed object type. not the vibe π
π APPLICATION USAGE π
the application should use tt_free(3) to free any data stored in the address returned by the ToolTalk API. yes bestie, free it β don't just leave it sitting there like an unread group chat π«Ά
π SEE ALSO π
Tt/tt_c.h - Tttt_c(5)tt_otype_is_derived(3)tt_otype_base(3)tt_otype_deriveds_count(3)tt_spec_type(3)tt_message_otype(3)tt_ptr_error(3)tt_free(3)
source/version + date tea π: the footer on this page is just tt_otype_derived(library call) β no separate version or date line is listed. 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