tfFSWriteFile

Jump to: navigation, search

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


#include <trsocket.h>


int tfFSWriteFile (
void * userDataPtr,
void * fileDataPtr,
char * bufferPtr,
int bytes
);


Function Description

Given the unique user data pointer as returned by tfFSUserLogin() and a file data pointer as returned by tfFSOpenFile(), this function writes bytes from the buffer pointed to by 'bufferPtr' to the file.


Parameters

  • userDataPtr
    Pointer to user data structure as returned by tfFSUserLogin().
  • fileDataPtr
    Pointer to file data structure as returned by tfFSOpenFile().
  • bufferPtr
    Pointer to buffer data to copy into the file.
  • bufferSize
    Size in bytes of the data in the buffer.


Returns

  • TM_ENOERROR
    Success.
  • -1
    Failure.


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