61 #ifndef _LIBUTIL_FILENAME_H_
62 #define _LIBUTIL_FILENAME_H_
65 #include <sphinxbase/sphinxbase_export.h>
SPHINXBASE_EXPORT void path2basename(const char *path, char *base)
Strip off leading path components from the given path and copy the base into base.
SPHINXBASE_EXPORT void strip_fileext(const char *file, char *root)
Strip off the smallest trailing file-extension suffix and copy the rest into the given root argument...
Basic type definitions used in Sphinx.
SPHINXBASE_EXPORT int path_is_absolute(const char *file)
Test whether a pathname is absolute for the current OS.
SPHINXBASE_EXPORT void path2dirname(const char *path, char *dir)
Strip off filename from the given path and copy the directory name into dir Caller must have allocate...