summaryrefslogtreecommitdiffstats
path: root/apps/misc.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/misc.h')
-rw-r--r--apps/misc.h5
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 */