diff options
| author | Ray <[email protected]> | 2021-03-02 01:07:08 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2021-03-02 01:07:08 +0100 |
| commit | bcc4418ff05fa0e06c1a539bcbbc3a5c62b3751a (patch) | |
| tree | 46faff440f4c6d35cc33b1bc8084aa17f71ca9fe /src/core.c | |
| parent | 2ff5fa73e9a4745aa1cc37a4e5be05c841778200 (diff) | |
| download | raylib-bcc4418ff05fa0e06c1a539bcbbc3a5c62b3751a.tar.gz raylib-bcc4418ff05fa0e06c1a539bcbbc3a5c62b3751a.zip | |
REVIEWED: GetFileExtension() to include the dot #1523
Diffstat (limited to 'src/core.c')
| -rw-r--r-- | src/core.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2351,14 +2351,14 @@ bool DirectoryExists(const char *dirPath) return result; } -// Get pointer to extension for a filename string +// Get pointer to extension for a filename string (includes the dot: .png) const char *GetFileExtension(const char *fileName) { const char *dot = strrchr(fileName, '.'); if (!dot || dot == fileName) return NULL; - return (dot + 1); + return dot; } // String pointer reverse break: returns right-most occurrence of charset in s |
