TT_FILE_COPY(3)
π 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β thettsession(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
- nixos 26.05: cde 2.5.3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms