Merge pull request #2953 from leiradel/master

made find_last_slash public
This commit is contained in:
Twinaphex 2016-05-05 22:13:44 +02:00
commit 548baa7ece
2 changed files with 11 additions and 1 deletions

View File

@ -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

View File

@ -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