TT_OTYPE_DERIVED(3)

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

πŸ’… 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 β€” the ttsession(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 πŸ‘‘


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