\hypertarget{group__Evil__Stdio__Group}{\section{Stdio.\-h functions}
\label{group__Evil__Stdio__Group}\index{Stdio.\-h functions@{Stdio.\-h functions}}
}


This header provides functions ported from Unix in stdio.\-h.  


\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define {\bfseries E\-V\-I\-L\-\_\-\-P\-A\-T\-H\-\_\-\-S\-E\-P\-\_\-\-S\-W\-A\-P}(p, s1, s2)
\item 
\hypertarget{group__Evil__Stdio__Group_ga24c3a1e0d7951c0f5f8d0661f9dfc8fc}{\#define {\bfseries E\-V\-I\-L\-\_\-\-P\-A\-T\-H\-\_\-\-S\-E\-P\-\_\-\-W\-I\-N32\-\_\-\-T\-O\-\_\-\-U\-N\-I\-X}(p)~E\-V\-I\-L\-\_\-\-P\-A\-T\-H\-\_\-\-S\-E\-P\-\_\-\-S\-W\-A\-P(p, '\textbackslash{}\textbackslash{}', '/')}\label{group__Evil__Stdio__Group_ga24c3a1e0d7951c0f5f8d0661f9dfc8fc}

\item 
\hypertarget{group__Evil__Stdio__Group_ga778fcec15b35da0088ab7395cc3451c1}{\#define {\bfseries E\-V\-I\-L\-\_\-\-P\-A\-T\-H\-\_\-\-S\-E\-P\-\_\-\-U\-N\-I\-X\-\_\-\-T\-O\-\_\-\-W\-I\-N32}(p)~E\-V\-I\-L\-\_\-\-P\-A\-T\-H\-\_\-\-S\-E\-P\-\_\-\-S\-W\-A\-P(p, '/', '\textbackslash{}\textbackslash{}')}\label{group__Evil__Stdio__Group_ga778fcec15b35da0088ab7395cc3451c1}

\item 
\hypertarget{group__Evil__Stdio__Group_gab92755272ef649e2c6e74ab80def85be}{\#define \hyperlink{group__Evil__Stdio__Group_gab92755272ef649e2c6e74ab80def85be}{rename}(src, dst)~\hyperlink{group__Evil__Stdio__Group_ga773acdc811c11324d600405f3feafd67}{evil\-\_\-rename}(src, dst)}\label{group__Evil__Stdio__Group_gab92755272ef649e2c6e74ab80def85be}

\begin{DoxyCompactList}\small\item\em Wrapper around \hyperlink{group__Evil__Stdio__Group_ga773acdc811c11324d600405f3feafd67}{evil\-\_\-rename()}. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
int \hyperlink{group__Evil__Stdio__Group_ga773acdc811c11324d600405f3feafd67}{evil\-\_\-rename} (const char $\ast$src, const char $\ast$dst)
\begin{DoxyCompactList}\small\item\em Emulate the \hyperlink{group__Evil__Stdio__Group_gab92755272ef649e2c6e74ab80def85be}{rename()} function on Windows. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
This header provides functions ported from Unix in stdio.\-h. 

\subsection{Macro Definition Documentation}
\hypertarget{group__Evil__Stdio__Group_ga797b1063060cce8eece81d5b4b305e4d}{\index{Stdio.\-h functions@{Stdio.\-h functions}!E\-V\-I\-L\-\_\-\-P\-A\-T\-H\-\_\-\-S\-E\-P\-\_\-\-S\-W\-A\-P@{E\-V\-I\-L\-\_\-\-P\-A\-T\-H\-\_\-\-S\-E\-P\-\_\-\-S\-W\-A\-P}}
\index{E\-V\-I\-L\-\_\-\-P\-A\-T\-H\-\_\-\-S\-E\-P\-\_\-\-S\-W\-A\-P@{E\-V\-I\-L\-\_\-\-P\-A\-T\-H\-\_\-\-S\-E\-P\-\_\-\-S\-W\-A\-P}!Stdio.h functions@{Stdio.\-h functions}}
\subsubsection[{E\-V\-I\-L\-\_\-\-P\-A\-T\-H\-\_\-\-S\-E\-P\-\_\-\-S\-W\-A\-P}]{\setlength{\rightskip}{0pt plus 5cm}\#define E\-V\-I\-L\-\_\-\-P\-A\-T\-H\-\_\-\-S\-E\-P\-\_\-\-S\-W\-A\-P(
\begin{DoxyParamCaption}
\item[{}]{p, }
\item[{}]{s1, }
\item[{}]{s2}
\end{DoxyParamCaption}
)}}\label{group__Evil__Stdio__Group_ga797b1063060cce8eece81d5b4b305e4d}
{\bfseries Value\-:}
\begin{DoxyCode}
\textcolor{keywordflow}{do} \{ \(\backslash\)
     char *\_evil\_path\_tmp; \(\backslash\)
     \_evil\_path\_tmp = p; \(\backslash\)
     while (*\_evil\_path\_tmp) \(\backslash\)
       \{ \(\backslash\)
          if (*\_evil\_path\_tmp == s1) \(\backslash\)
            *\_evil\_path\_tmp = s2; \(\backslash\)
          \_evil\_path\_tmp++; \(\backslash\)
       \} \(\backslash\)
   \} \textcolor{keywordflow}{while} (0)
\end{DoxyCode}


\subsection{Function Documentation}
\hypertarget{group__Evil__Stdio__Group_ga773acdc811c11324d600405f3feafd67}{\index{Stdio.\-h functions@{Stdio.\-h functions}!evil\-\_\-rename@{evil\-\_\-rename}}
\index{evil\-\_\-rename@{evil\-\_\-rename}!Stdio.h functions@{Stdio.\-h functions}}
\subsubsection[{evil\-\_\-rename}]{\setlength{\rightskip}{0pt plus 5cm}int evil\-\_\-rename (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{src, }
\item[{const char $\ast$}]{dst}
\end{DoxyParamCaption}
)}}\label{group__Evil__Stdio__Group_ga773acdc811c11324d600405f3feafd67}


Emulate the \hyperlink{group__Evil__Stdio__Group_gab92755272ef649e2c6e74ab80def85be}{rename()} function on Windows. 


\begin{DoxyParams}{Parameters}
{\em src} & The old pathname. \\
\hline
{\em dst} & The new pathname. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
0 on success, -\/1 otherwise.
\end{DoxyReturn}
This function emulates the P\-O\-S\-I\-X \hyperlink{group__Evil__Stdio__Group_gab92755272ef649e2c6e74ab80def85be}{rename()} function on Windows. The difference with the P\-O\-S\-I\-X function is that the \hyperlink{group__Evil__Stdio__Group_gab92755272ef649e2c6e74ab80def85be}{rename()} function on windows fails if the destination exists.

\begin{DoxySince}{Since}
1.\-8 
\end{DoxySince}


References rename.

