TTDT_CLOSE(3)

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

✨ NAME ✨

ttdt_close β€” destroy a ToolTalk communication endpoint.

Bestie, welcome to the ttdt_close library call page. That's the whole name vibe: it destroys a ToolTalk communication endpoint. Periodt. πŸ’…

πŸ› οΈ SYNOPSIS πŸ› οΈ

#include &<Tt/tttk.h>
Tt_status ttdt_close(
const char *procid,
const char *new_procid,
int sendStopped);

πŸ’… DESCRIPTION πŸ’…

Okay so the ttdt_close function destroys a ToolTalk communication endpoint. That's the main character move, no cap. ✨

Here's the tea:

  • If sendStopped is True, ttdt_close sends a Stopped notice; otherwise, it sends no notice.
  • If procid is not NULL, ttdt_close calls tt_default_procid_set with a procid argument and then calls tt_close; otherwise, it closes the current default procid.
  • If new_procid is not NULL, ttdt_close calls tt_default_procid_set with a new_procid argument.

That β€œand then” is doing real work in bullet two, bestie β€” set the procid, then close. Slay. πŸ”₯

πŸ” RETURN VALUE πŸ”

The ttdt_close function may return any of the errors returned by tt_default_procid_set(3) and tt_close(3).

⚠️ No errors are propagated if sending the Stopped notice fails. Like, that failure does not get passed along β€” noted, bestie. πŸ’€

πŸ‘€ SEE ALSO πŸ‘€


Final footer vibes: ttdt_close is a library call, and the original footer has no source/version line and no date line to copy β€” so this is your sparkly sign-off, bestie. πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from