tfFSMakeDir
Table of Contents >> Application Reference >> File System Interface
| #include <trsocket.h> |
| int tfFSMakeDir | ( |
| void * userDataPtr, | |
| char * pathNamePtr, | |
| char * bufferPtr, | |
| int bufferSize | |
| ); |
Function Description
Given the unique user data pointer as returned by tfFSUserLogin(), and a directory name, this function creates the directory. If successful, copy the directory path name in 'bufferPtr' (up to 'bufferSize'). The directory path name could be either absolute or relative to the user working directory path, but should be such that a subsequent tfFSChangeDir() with that path name as an argument should not fail.
Parameters
- userDataPtr
- Pointer to user data structure as returned by tfFSUserLogin().
- pathNamePtr
- Pointer to a null terminated string containing directory path.
- bufferPtr
- Pointer to a buffer where to copy the pathname of the newly created 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