TT_BCONTEXT_JOIN(3)

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

πŸŽ€ tt_bcontext_join β€” library call πŸŽ€

πŸ’– NAME πŸ’–

tt_bcontext_join β€” add a byte-array value to the list of values. Bestie, that’s literally the whole name-vibe. πŸ’…

✨ SYNOPSIS ✨

okay so the include and signature are exactly this, no edits, no cap:

       #include &<Tt/tt_c.h>
       Tt_status tt_bcontext_join(
       const char *slotname,
       const unsigned char *value,
       int length);

🌸 DESCRIPTION 🌸

The tt_bcontext_join function adds the given byte-array value to the list of values for the named contexts of all patterns. The context is compared to currently registered patterns for the procid. If a pattern has a slot with the specified name, the given byte-array value is added to the list of values for that slot. Slay. ✨

  • slotname β€” the name of the context. That’s the slot-name bestie right there. πŸŽ€
  • value β€” the value to be added. The actual byte-array guest of honor. πŸ¦‹
  • length β€” the length in bytes of the value. Gotta know how many bytes are showing up to the party. πŸ’…

πŸ”₯ RETURN VALUE πŸ”₯

Upon successful completion, the tt_bcontext_join function returns the status of the operation as one of the following Tt_status values:

  • TT_OK β€” The operation completed successfully. We love a clean win. πŸ‘‘
  • TT_ERR_NOMP β€” The ttsession(1) process is not running and the ToolTalk service cannot restart it. Big yikes, no session energy. 😭
  • TT_ERR_SLOTNAME β€” The specified slotname is syntactically invalid. The name did not pass the vibe check. πŸ’€

🫢 SEE ALSO 🫢


footer tea, bestie: source/version tt_bcontext_join(library call), and the date is not listed on this page, so I’m not inventing one β€” periodt. bye and slay your byte arrays πŸ’–βœ¨

πŸ“¦ where this page comes from