summaryrefslogtreecommitdiff
path: root/mg_tools.h
diff options
context:
space:
mode:
Diffstat (limited to 'mg_tools.h')
-rw-r--r--mg_tools.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/mg_tools.h b/mg_tools.h
index 65ba262..821405d 100644
--- a/mg_tools.h
+++ b/mg_tools.h
@@ -84,6 +84,11 @@ class mgLog
std::string trim(std::string const& source, char const* delims = " \t\r\n");
+//! \brief extracts folder names from a filename
+// \param filename the full path
+// \param folders an array of char * where the single folders will be placed in
+// \param fcount the maximum number of folders that can be returned
+// \return a buffer hold all folder strings
char *SeparateFolders(const char *filename, char * folders[],unsigned int fcount);
#endif /* _MUGGLE_TOOLS_H */