mirror of
https://github.com/libretro/RetroArch
synced 2025-02-07 03:40:24 +00:00
Merge pull request #2953 from leiradel/master
made find_last_slash public
This commit is contained in:
commit
548baa7ece
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user