diff options
| author | raysan5 <[email protected]> | 2018-01-02 02:26:05 +0100 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2018-01-02 02:26:05 +0100 |
| commit | 1a82e1ab26d3db6f9c9c2f633df1e2980524ebfa (patch) | |
| tree | ba7f07d9be2e535479a133426355707595ad339a /src/raylib.h | |
| parent | e1baae02498aab2f4dd84c44732717bb963d18d1 (diff) | |
| download | raylib-1a82e1ab26d3db6f9c9c2f633df1e2980524ebfa.tar.gz raylib-1a82e1ab26d3db6f9c9c2f633df1e2980524ebfa.zip | |
Added function GetFileName()
Review comments
Diffstat (limited to 'src/raylib.h')
| -rw-r--r-- | src/raylib.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/raylib.h b/src/raylib.h index 3e2dbe0c..75bd883d 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -736,9 +736,10 @@ RLAPI int GetRandomValue(int min, int max); // Returns a r // Files management functions RLAPI bool IsFileExtension(const char *fileName, const char *ext);// Check file extension -RLAPI const char *GetExtension(const char *fileName); // Get file extension -RLAPI const char *GetDirectoryPath(const char *fileName); // Get directory for a given fileName (with path) -RLAPI const char *GetWorkingDirectory(void); // Get current working directory +RLAPI const char *GetExtension(const char *fileName); // Get pointer to extension for a filename string +RLAPI const char *GetFileName(const char *filePath); // Get pointer to filename for a path string +RLAPI const char *GetDirectoryPath(const char *fileName); // Get full path for a given fileName (uses static string) +RLAPI const char *GetWorkingDirectory(void); // Get current working directory (uses static string) RLAPI bool ChangeDirectory(const char *dir); // Change working directory, returns true if success RLAPI bool IsFileDropped(void); // Check if a file has been dropped into window RLAPI char **GetDroppedFiles(int *count); // Get dropped files names |
