TT_OTYPE_BASE(3)

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

✨ NAME ✨

okay so bestie, we're in the library call manual, and this page is all about tt_otype_base β€” it returns the base otype of an otype. πŸŽ€

🌸 SYNOPSIS 🌸

#include &<Tt/tt_c.h>
char *tt_otype_base(
const char *otype);

πŸ’– DESCRIPTION πŸ’–

The tt_otype_base function returns the base otype of the given otype, or NULL if the given otype is not derived. no cap. ✨

The otype argument is the object type involved in this operation. that's the vibe. πŸ¦‹

πŸŽ€ RETURN VALUE πŸŽ€

Upon successful completion, the tt_otype_base function returns the name of the base otype; if the given otype is not derived, this value is NULL. 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 β€” 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. 🫢

🧚 APPLICATION USAGE 🧚

The application should use tt_free(3) to free any data stored in the address returned by the ToolTalk API. literally don't forget, bestie. πŸ“

🌈 SEE ALSO 🌈

Tt/tt_c.h - Tttt_c(5), tt_otype_is_derived(3), tt_otype_derived(3), tt_otype_deriveds_count(3), tt_spec_type(3), tt_message_otype(3), tt_ptr_error(3), tt_free(3).


footer check bestie: this is the library call page for tt_otype_base β€” no separate source/version or date line was printed, so consider this the official cute sign-off. πŸ’œπŸ¦‹βœ¨

πŸ“¦ where this page comes from