tfFSGetWorkingDir

Jump to: navigation, search

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


#include <trsocket.h>


int tfFSGetWorkingDir (
void * userDataPtr,
char * bufferPtr,
int bufferSize
);


Function Description

Given the unique user data pointer as returned by tfFSUserLogin(), copy the user's working directory in the buffer pointed to by 'bufferPtr' (up to 'bufferSize').


Parameters

  • userDataPtr
    Pointer to user data structure as returned by tfFSUserLogin().
  • bufferPtr
    Pointer to a buffer where to copy the pathname of the user working directory.
  • bufferSize
    Size in bytes of the buffer.


Returns

  • >0
    Number of bytes copied into the buffer pointed to by 'bufferPtr'.
  • -1
    Failure.


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