tfFSRenameFile

Jump to: navigation, search

Table of Contents >> Application Reference >> File System Interface


#include <trsocket.h>


int tfFSRenameFile (
void * userDataPtr,
char * fromPathNamePtr,
char * toPathNamePtr
);


Function Description

Given the unique user data pointer as returned by tfFSUserLogin(), a current file name, and a new file name, this function renames the file to the new file name.


Parameters

  • userDataPtr
    Pointer to user data structure as returned by tfFSUserLogin().
  • fromPathNamePtr
    Pointer to null terminated string containing current file name.
  • toPathNamePtr
    Pointer to null terminated string containing new file name.


Returns

  • TM_ENOERROR
    Success.
  • -1
    Failure.


Table of Contents >> Application Reference >> File System Interface