include/filename.h File Reference

File names related operation. More...

#include <sphinxbase_export.h>
#include <prim_type.h>

Go to the source code of this file.

Functions

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.
SPHINXBASE_EXPORT int path_is_absolute (const char *file)
 Test whether a pathname is absolute for the current OS.


Detailed Description

File names related operation.

Definition in file filename.h.


Function Documentation

SPHINXBASE_EXPORT void path2basename ( const char *  path,
char *  base 
)

Strip off leading path components from the given path and copy the base into base.

Caller must have allocated base.

Definition at line 75 of file filename.c.

References path2basename().

Referenced by path2basename().

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.

Caller must have allocated root.

Definition at line 91 of file filename.c.

References strip_fileext().

Referenced by strip_fileext().


Generated on Mon Aug 24 16:06:37 2009 for SphinxBase by  doxygen 1.5.8