\hypertarget{evil__stdio_8h}{\section{evil\+\_\+stdio.\+h File Reference}
\label{evil__stdio_8h}\index{evil\+\_\+stdio.\+h@{evil\+\_\+stdio.\+h}}
}


The file that 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{evil__stdio_8h_a24c3a1e0d7951c0f5f8d0661f9dfc8fc}{\#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{evil__stdio_8h_a24c3a1e0d7951c0f5f8d0661f9dfc8fc}

\item 
\hypertarget{evil__stdio_8h_a778fcec15b35da0088ab7395cc3451c1}{\#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{evil__stdio_8h_a778fcec15b35da0088ab7395cc3451c1}

\item 
\hypertarget{evil__stdio_8h_ab92755272ef649e2c6e74ab80def85be}{\#define \hyperlink{evil__stdio_8h_ab92755272ef649e2c6e74ab80def85be}{rename}(src, dst)~\hyperlink{evil__stdio_8h_a773acdc811c11324d600405f3feafd67}{evil\+\_\+rename}(src, dst)}\label{evil__stdio_8h_ab92755272ef649e2c6e74ab80def85be}

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


\subsection{Detailed Description}
The file that provides functions ported from Unix in stdio.\+h. 



\subsection{Macro Definition Documentation}
\hypertarget{evil__stdio_8h_a797b1063060cce8eece81d5b4b305e4d}{\index{evil\+\_\+stdio.\+h@{evil\+\_\+stdio.\+h}!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}!evil\+\_\+stdio.\+h@{evil\+\_\+stdio.\+h}}
\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{evil__stdio_8h_a797b1063060cce8eece81d5b4b305e4d}
{\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{evil__stdio_8h_a773acdc811c11324d600405f3feafd67}{\index{evil\+\_\+stdio.\+h@{evil\+\_\+stdio.\+h}!evil\+\_\+rename@{evil\+\_\+rename}}
\index{evil\+\_\+rename@{evil\+\_\+rename}!evil\+\_\+stdio.\+h@{evil\+\_\+stdio.\+h}}
\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{evil__stdio_8h_a773acdc811c11324d600405f3feafd67}


Emulate the \hyperlink{evil__stdio_8h_ab92755272ef649e2c6e74ab80def85be}{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{evil__stdio_8h_ab92755272ef649e2c6e74ab80def85be}{rename()} function on Windows. The difference with the P\+O\+S\+I\+X function is that the \hyperlink{evil__stdio_8h_ab92755272ef649e2c6e74ab80def85be}{rename()} function on windows fails if the destination exists.

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


References rename.

