TT_SPEC_PROPNAME(3)

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

πŸ’– NAME πŸ’–

okay so bestie, this is tt_spec_propname from the library call pages, and its whole personality is: return an element of the property name list for an object spec. periodt. ✨

✨ SYNOPSIS ✨

#include &<Tt/tt_c.h>
char *tt_spec_propname(
const char *objid,
int n);

πŸ¦‹ DESCRIPTION πŸ¦‹

The tt_spec_propname function returns the nth element of the property name list for this object spec. It’s giving β€œgrab one name from the list” energy, no cap.

The objid argument is the identifier of the object involved in this operation. The n argument is the item of the list whose element is to be returned. The list numbering begins with zero β€” yes bestie, zero-indexed, iykyk. πŸ’…

πŸ’… RETURN VALUE πŸ’…

Upon successful completion, the tt_spec_propname function returns the property name. If there are n properties or less, tt_spec_propname returns 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. slay.
  • TT_ERR_DBAVAIL β€” The ToolTalk service could not access the ToolTalk database needed for this operation.
  • TT_ERR_DBEXIST β€” The ToolTalk service could not access the specified ToolTalk database in the expected place.
  • TT_ERR_NOMP β€” The ttsession(1) process is not running and the ToolTalk service cannot restart it.
  • TT_ERR_NUM β€” The integer value passed was invalid (out of range).
  • TT_ERR_OBJID β€” The objid passed to the ToolTalk service does not reference an existing object spec.

πŸŽ€ APPLICATION USAGE πŸŽ€

The application should use tt_free(3) to free any data stored in the address returned by the ToolTalk API. yes, free it, bestie β€” don’t leave that memory just vibing. 🫢

🌈 SEE ALSO 🌈


that’s the whole page β€” the footer is literally tt_spec_propname(library call), and there’s no extra version or date printed, so I’m not inventing one, bestie πŸ’œ

πŸ“¦ where this page comes from