TT_FILE_COPY(3)

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

πŸ’– tt_file_copy β€” the library call page πŸ’–

okay bestie, welcome to the tt_file_copy manual page from the library call section β€” yes, that's the manual-name vibe folded in right here at the top, no boring copied header line needed ✨

✨ NAME ✨

tt_file_copy β€” copy objects from one file to a new file πŸ’…

🌸 SYNOPSIS 🌸

       #include &<Tt/tt_c.h>
       Tt_status tt_file_copy(
       const char *oldfilepath,
       const char *newfilepath);

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so tt_file_copy copies all objects that exist on the specified file to a new file. If any objects already exist on newfilepath, they are not overwritten by the copy (that is, they are not removed.) Like, the copy does not delete the existing ones β€” periodt.

The oldfilepath argument is a pointer to the name of the file whose objects are to be copied. The newfilepath argument is a pointer to the name of the file on which to create the copied objects. Slay, that's the whole argument situation 🫢

πŸ”₯ RETURN VALUE πŸ”₯

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

  • TT_OK β€” the operation completed successfully. iconic.
  • 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. It does not appear to exist; administrative action is required. 😭
  • 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_PATH β€” the specified pathname included an unsearchable directory.
  • TT_ERR_POINTER β€” the pointer passed does not point to an object of the correct type for this operation.

πŸŽ€ SEE ALSO πŸŽ€

go check out Tt/tt_c.h - Tttt_c(5), tt_file_move(3), tt_file_destroy(3). iykyk πŸ’–


okay bye bestie 🫢 β€” cute sign-off from the footer: this page's label is tt_file_copy(library call), so that's the source/version vibe we're closing on. There's no date listed in the footer, so no invented date energy, periodt πŸ’…βœ¨

πŸ“¦ where this page comes from