TT_MESSAGE_FILE_SET(3)

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

πŸ’– NAME πŸ’–

okay so this is the tt_message_file_set library-call page, bestie, and it's about one job: set the file attribute for a message. That's the whole vibe. πŸ’…

✨ SYNOPSIS ✨

#include &<Tt/tt_c.h>
Tt_status tt_message_file_set(
Tt_message m,
const char *file);

πŸ¦‹ DESCRIPTION πŸ¦‹

tt_message_file_set sets the file attribute for the specified message. periodt.

The m argument is the opaque handle for the message involved in this operation β€” opaque meaning you hold the handle and pass it along, you don't go poking around inside it, iykyk. 🫢

The file argument is the name of the file involved in this operation.

πŸ”₯ RETURN VALUE πŸ”₯

Upon successful completion, tt_message_file_set returns the status of the operation as one of these Tt_status values:

  • TT_OK β€” the operation completed successfully. slay. ✨
  • TT_ERR_FILE β€” the specified file does not exist or it is inaccessible.
  • TT_ERR_NOMP β€” the ttsession(1) process is not running and the ToolTalk service cannot restart it.
  • TT_ERR_POINTER β€” the pointer passed does not point to an object of the correct type for this operation.
bestie, those are the exact status values this page lists β€” no extra ones, no guessing, fr fr. 😭

🌈 SEE ALSO 🌈


and that's a wrap on the tt_message_file_set(library call) page πŸŽ€ the footer is just that library-call tag β€” no separate source/version/date line attached β€” so bye bestie, go set that file attribute responsibly πŸ’–

πŸ“¦ where this page comes from