diff options
author | Nicolas Pennequin <nicolas.pennequin@free.fr> | 2008-01-18 10:02:03 +0000 |
---|---|---|
committer | Nicolas Pennequin <nicolas.pennequin@free.fr> | 2008-01-18 10:02:03 +0000 |
commit | 536b5a0482454d3e3104f2a77a29d37319bc845c (patch) | |
tree | 9c49613ba5723a0d615c4ad41f84e641dfd14fda /apps/misc.h | |
parent | 905d80619c3f7dec778fd29fa9ec77dda2ac8bcf (diff) | |
download | rockbox-536b5a0482454d3e3104f2a77a29d37319bc845c.tar.gz rockbox-536b5a0482454d3e3104f2a77a29d37319bc845c.tar.bz2 rockbox-536b5a0482454d3e3104f2a77a29d37319bc845c.zip |
Accept FS#8469 by Bryan Childs with a few adjustments: Remove duplicate strip_extension() function from albumart.c. The other one is moved from tree.c to misc.c.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16103 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/misc.h')
-rw-r--r-- | apps/misc.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/misc.h b/apps/misc.h index 590ccf013f..99eadc443a 100644 --- a/apps/misc.h +++ b/apps/misc.h @@ -118,5 +118,10 @@ char* strrsplt(char* str, int c); bool file_exists(const char *file); bool dir_exists(const char *path); +/* + * removes the extension of filename (if it doesn't start with a .) + * puts the result in buffer + */ +char *strip_extension(const char *filename, char *buffer); #endif /* MISC_H */ |