\section{include/sphinxbase/filename.h File Reference}
\label{filename_8h}\index{include/sphinxbase/filename.\+h@{include/sphinxbase/filename.\+h}}


File names related operation.  


{\ttfamily \#include $<$sphinxbase/sphinxbase\+\_\+export.\+h$>$}\\*
{\ttfamily \#include $<$sphinxbase/prim\+\_\+type.\+h$>$}\\*
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
S\+P\+H\+I\+N\+X\+B\+A\+S\+E\+\_\+\+E\+X\+P\+O\+R\+T void {\bf path2basename} (const char $\ast$path, char $\ast$base)
\begin{DoxyCompactList}\small\item\em Strip off leading path components from the given path and copy the base into base. \end{DoxyCompactList}\item 
S\+P\+H\+I\+N\+X\+B\+A\+S\+E\+\_\+\+E\+X\+P\+O\+R\+T void {\bf path2dirname} (const char $\ast$path, char $\ast$dir)\label{filename_8h_a678be92ddb74695f26a9e4f527b073b0}

\begin{DoxyCompactList}\small\item\em Strip off filename from the given path and copy the directory name into dir Caller must have allocated dir (hint\+: it's always shorter than path). \end{DoxyCompactList}\item 
S\+P\+H\+I\+N\+X\+B\+A\+S\+E\+\_\+\+E\+X\+P\+O\+R\+T void {\bf strip\+\_\+fileext} (const char $\ast$file, char $\ast$root)
\begin{DoxyCompactList}\small\item\em Strip off the smallest trailing file-\/extension suffix and copy the rest into the given root argument. \end{DoxyCompactList}\item 
S\+P\+H\+I\+N\+X\+B\+A\+S\+E\+\_\+\+E\+X\+P\+O\+R\+T int {\bf path\+\_\+is\+\_\+absolute} (const char $\ast$file)\label{filename_8h_ac59add2db73b33e81b354de114268e7a}

\begin{DoxyCompactList}\small\item\em Test whether a pathname is absolute for the current O\+S. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
File names related operation. 



Definition in file {\bf filename.\+h}.



\subsection{Function Documentation}
\index{filename.\+h@{filename.\+h}!path2basename@{path2basename}}
\index{path2basename@{path2basename}!filename.\+h@{filename.\+h}}
\subsubsection[{path2basename}]{\setlength{\rightskip}{0pt plus 5cm}S\+P\+H\+I\+N\+X\+B\+A\+S\+E\+\_\+\+E\+X\+P\+O\+R\+T void path2basename (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{path, }
\item[{char $\ast$}]{base}
\end{DoxyParamCaption}
)}\label{filename_8h_ad8a88d52ec0af498bc126a90871b2efe}


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

Caller must have allocated base (hint\+: it's always shorter than path). 

Definition at line 75 of file filename.\+c.

\index{filename.\+h@{filename.\+h}!strip\+\_\+fileext@{strip\+\_\+fileext}}
\index{strip\+\_\+fileext@{strip\+\_\+fileext}!filename.\+h@{filename.\+h}}
\subsubsection[{strip\+\_\+fileext}]{\setlength{\rightskip}{0pt plus 5cm}S\+P\+H\+I\+N\+X\+B\+A\+S\+E\+\_\+\+E\+X\+P\+O\+R\+T void strip\+\_\+fileext (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{file, }
\item[{char $\ast$}]{root}
\end{DoxyParamCaption}
)}\label{filename_8h_ad40b54252813d276ff2ebb097b242657}


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 111 of file filename.\+c.

