#include <string.h>
#include <stdio.h>
#include "../common/common_utils.h"
#include "../common/platform.h"
#include "../string/wtstring.h"

Functions | |
| PUBLIC char * | FS_getFileName (char *path) |
| Returns file name from path string. | |
| PUBLIC void | FS_RemoveExtension (const char *in, char *out) |
| Removes file extension from path string. | |
| PUBLIC char * | FS_getFileExtension (const char *in) |
| Returns file extension from path string. | |
| PUBLIC wtBoolean | FS_getFileBase (const char *in, char *out, W32 size_out) |
| Returns base file name from path string. | |
| PUBLIC wtBoolean | FS_getPath (const char *in, char *out, W32 size_out) |
| Returns path from full path. | |
| PUBLIC wtBoolean FS_getFileBase | ( | const char * | in, | |
| char * | out, | |||
| W32 | size_out | |||
| ) |
Returns base file name from path string.
| [in] | in | Path to get file extension from. |
| [in,out] | out | File name. |
| [in] | size_out | Size of out buffer in bytes. |

| PUBLIC char* FS_getFileExtension | ( | const char * | in | ) |
Returns file extension from path string.
| [in] | in | Path to get file extension from. |
| PUBLIC char* FS_getFileName | ( | char * | path | ) |
Returns file name from path string.
| [in] | path | Path to get file name from. |
| PUBLIC wtBoolean FS_getPath | ( | const char * | in, | |
| char * | out, | |||
| W32 | size_out | |||
| ) |
Returns path from full path.
| [in] | in | Path with file name. |
| [in,out] | out | path. |
| [in] | size_out | Size of out buffer in bytes. |

| PUBLIC void FS_RemoveExtension | ( | const char * | in, | |
| char * | out | |||
| ) |
Removes file extension from path string.
| [in] | in | Path to remove file extension. |
| [in] | out | Pointer to hold path string. |