\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$>$}\newline
{\ttfamily \#include $<$sphinxbase/prim\+\_\+type.\+h$>$}\newline
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
S\+P\+H\+I\+N\+X\+B\+A\+S\+E\+\_\+\+E\+X\+P\+O\+RT void \textbf{ 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 
\mbox{\label{filename_8h_a678be92ddb74695f26a9e4f527b073b0}} 
S\+P\+H\+I\+N\+X\+B\+A\+S\+E\+\_\+\+E\+X\+P\+O\+RT void \textbf{ path2dirname} (const char $\ast$path, char $\ast$dir)
\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\textquotesingle{}s always shorter than path). \end{DoxyCompactList}\item 
S\+P\+H\+I\+N\+X\+B\+A\+S\+E\+\_\+\+E\+X\+P\+O\+RT void \textbf{ 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 
\mbox{\label{filename_8h_ac59add2db73b33e81b354de114268e7a}} 
S\+P\+H\+I\+N\+X\+B\+A\+S\+E\+\_\+\+E\+X\+P\+O\+RT int \textbf{ path\+\_\+is\+\_\+absolute} (const char $\ast$file)
\begin{DoxyCompactList}\small\item\em Test whether a pathname is absolute for the current OS. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
File names related operation. 



\subsection{Function Documentation}
\mbox{\label{filename_8h_ad8a88d52ec0af498bc126a90871b2efe}} 
\index{filename.\+h@{filename.\+h}!path2basename@{path2basename}}
\index{path2basename@{path2basename}!filename.\+h@{filename.\+h}}
\subsubsection{path2basename()}
{\footnotesize\ttfamily S\+P\+H\+I\+N\+X\+B\+A\+S\+E\+\_\+\+E\+X\+P\+O\+RT void path2basename (\begin{DoxyParamCaption}\item[{const char $\ast$}]{path,  }\item[{char $\ast$}]{base }\end{DoxyParamCaption})}



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

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

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

\mbox{\label{filename_8h_ad40b54252813d276ff2ebb097b242657}} 
\index{filename.\+h@{filename.\+h}!strip\+\_\+fileext@{strip\+\_\+fileext}}
\index{strip\+\_\+fileext@{strip\+\_\+fileext}!filename.\+h@{filename.\+h}}
\subsubsection{strip\+\_\+fileext()}
{\footnotesize\ttfamily S\+P\+H\+I\+N\+X\+B\+A\+S\+E\+\_\+\+E\+X\+P\+O\+RT void strip\+\_\+fileext (\begin{DoxyParamCaption}\item[{const char $\ast$}]{file,  }\item[{char $\ast$}]{root }\end{DoxyParamCaption})}



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.

