From b38e234d2ef33efb68f5c8917f15654d7c0c0c51 Mon Sep 17 00:00:00 2001 From: Andre Leiradella Date: Thu, 5 May 2016 16:22:35 -0300 Subject: [PATCH] made find_last_slash public --- libretro-common/file/file_path.c | 2 +- libretro-common/include/file/file_path.h | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/libretro-common/file/file_path.c b/libretro-common/file/file_path.c index cc16645d02..85131706b4 100644 --- a/libretro-common/file/file_path.c +++ b/libretro-common/file/file_path.c @@ -243,7 +243,7 @@ void fill_pathname_noext(char *out_path, const char *in_path, retro_assert(strlcat(out_path, replace, size) < size); } -static char *find_last_slash(const char *str) +char *find_last_slash(const char *str) { const char *slash = strrchr(str, '/'); #ifdef _WIN32 diff --git a/libretro-common/include/file/file_path.h b/libretro-common/include/file/file_path.h index 0ac5ffe89b..527cdeebf7 100644 --- a/libretro-common/include/file/file_path.h +++ b/libretro-common/include/file/file_path.h @@ -211,6 +211,16 @@ void fill_dated_filename(char *out_filename, void fill_pathname_noext(char *out_path, const char *in_path, const char *replace, size_t size); +/** + * find_last_slash: + * @str : input path + * + * Gets a pointer to the last slash in the input path. + * + * Returns: a pointer to the last slash in the input path. + **/ +char *find_last_slash(const char *str); + /** * fill_pathname_dir: * @in_dir : input directory path