\doxysubsection{util.\+h File Reference}
\label{util_8h}\index{util.h@{util.h}}


Misc utility functions used by librsync.  


Include dependency graph for util.\+h\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{util_8h__incl}
\end{center}
\end{figure}
This graph shows which files directly or indirectly include this file\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{util_8h__dep__incl}
\end{center}
\end{figure}
\doxysubsubsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define \mbox{\hyperlink{util_8h_a41c6b69743a950d4753a4273982c0c20}{rs\+\_\+alloc\+\_\+struct}}(type)~        ((type $\ast$) rs\+\_\+alloc\+\_\+struct0(sizeof(type), \#type))
\begin{DoxyCompactList}\small\item\em Allocate and zero-\/fill an instance of TYPE. \end{DoxyCompactList}\item 
\#define \mbox{\hyperlink{util_8h_a86d500a34c624c2cae56bc25a31b12f3}{UNUSED}}(x)~x
\end{DoxyCompactItemize}
\doxysubsubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void $\ast$ \mbox{\hyperlink{util_8h_aa4af2f6d059ecac2fa7d78982e15c507}{rs\+\_\+alloc}} (size\+\_\+t size, char const $\ast$name)
\item 
void $\ast$ \mbox{\hyperlink{util_8h_a80248bb97aa8d0c803f68810457e58a4}{rs\+\_\+realloc}} (void $\ast$ptr, size\+\_\+t size, char const $\ast$name)
\item 
void $\ast$ \mbox{\hyperlink{util_8h_a884423cb1fcc7eddc8f3217080e60c72}{rs\+\_\+alloc\+\_\+struct0}} (size\+\_\+t size, char const $\ast$name)
\item 
void \mbox{\hyperlink{util_8h_a3c0e233759281145a0c27b3d30251762}{rs\+\_\+bzero}} (void $\ast$buf, size\+\_\+t size)
\item 
int \mbox{\hyperlink{util_8h_add2085b415e70afd959ee3e6d99ae853}{rs\+\_\+long\+\_\+ln2}} (rs\+\_\+long\+\_\+t v)
\item 
int \mbox{\hyperlink{util_8h_a488ab3f5298c2758e211d386a95b42d9}{rs\+\_\+long\+\_\+sqrt}} (rs\+\_\+long\+\_\+t v)
\end{DoxyCompactItemize}


\doxysubsubsection{Detailed Description}
Misc utility functions used by librsync. 



Definition in file \mbox{\hyperlink{util_8h_source}{util.\+h}}.



\doxysubsubsection{Macro Definition Documentation}
\mbox{\label{util_8h_a41c6b69743a950d4753a4273982c0c20}} 
\index{util.h@{util.h}!rs\_alloc\_struct@{rs\_alloc\_struct}}
\index{rs\_alloc\_struct@{rs\_alloc\_struct}!util.h@{util.h}}
\doxyparagraph{\texorpdfstring{rs\_alloc\_struct}{rs\_alloc\_struct}}
{\footnotesize\ttfamily \#define rs\+\_\+alloc\+\_\+struct(\begin{DoxyParamCaption}\item[{}]{type }\end{DoxyParamCaption})~        ((type $\ast$) rs\+\_\+alloc\+\_\+struct0(sizeof(type), \#type))}



Allocate and zero-\/fill an instance of TYPE. 



Definition at line \mbox{\hyperlink{util_8h_source_l00041}{41}} of file \mbox{\hyperlink{util_8h_source}{util.\+h}}.

\mbox{\label{util_8h_a86d500a34c624c2cae56bc25a31b12f3}} 
\index{util.h@{util.h}!UNUSED@{UNUSED}}
\index{UNUSED@{UNUSED}!util.h@{util.h}}
\doxyparagraph{\texorpdfstring{UNUSED}{UNUSED}}
{\footnotesize\ttfamily \#define UNUSED(\begin{DoxyParamCaption}\item[{}]{x }\end{DoxyParamCaption})~x}



Definition at line \mbox{\hyperlink{util_8h_source_l00049}{49}} of file \mbox{\hyperlink{util_8h_source}{util.\+h}}.



\doxysubsubsection{Function Documentation}
\mbox{\label{util_8h_aa4af2f6d059ecac2fa7d78982e15c507}} 
\index{util.h@{util.h}!rs\_alloc@{rs\_alloc}}
\index{rs\_alloc@{rs\_alloc}!util.h@{util.h}}
\doxyparagraph{\texorpdfstring{rs\_alloc()}{rs\_alloc()}}
{\footnotesize\ttfamily void $\ast$ rs\+\_\+alloc (\begin{DoxyParamCaption}\item[{size\+\_\+t}]{size,  }\item[{char const $\ast$}]{name }\end{DoxyParamCaption})}



Definition at line \mbox{\hyperlink{util_8c_source_l00049}{49}} of file \mbox{\hyperlink{util_8c_source}{util.\+c}}.

\mbox{\label{util_8h_a80248bb97aa8d0c803f68810457e58a4}} 
\index{util.h@{util.h}!rs\_realloc@{rs\_realloc}}
\index{rs\_realloc@{rs\_realloc}!util.h@{util.h}}
\doxyparagraph{\texorpdfstring{rs\_realloc()}{rs\_realloc()}}
{\footnotesize\ttfamily void $\ast$ rs\+\_\+realloc (\begin{DoxyParamCaption}\item[{void $\ast$}]{ptr,  }\item[{size\+\_\+t}]{size,  }\item[{char const $\ast$}]{name }\end{DoxyParamCaption})}



Definition at line \mbox{\hyperlink{util_8c_source_l00060}{60}} of file \mbox{\hyperlink{util_8c_source}{util.\+c}}.

\mbox{\label{util_8h_a884423cb1fcc7eddc8f3217080e60c72}} 
\index{util.h@{util.h}!rs\_alloc\_struct0@{rs\_alloc\_struct0}}
\index{rs\_alloc\_struct0@{rs\_alloc\_struct0}!util.h@{util.h}}
\doxyparagraph{\texorpdfstring{rs\_alloc\_struct0()}{rs\_alloc\_struct0()}}
{\footnotesize\ttfamily void $\ast$ rs\+\_\+alloc\+\_\+struct0 (\begin{DoxyParamCaption}\item[{size\+\_\+t}]{size,  }\item[{char const $\ast$}]{name }\end{DoxyParamCaption})}



Definition at line \mbox{\hyperlink{util_8c_source_l00038}{38}} of file \mbox{\hyperlink{util_8c_source}{util.\+c}}.

\mbox{\label{util_8h_a3c0e233759281145a0c27b3d30251762}} 
\index{util.h@{util.h}!rs\_bzero@{rs\_bzero}}
\index{rs\_bzero@{rs\_bzero}!util.h@{util.h}}
\doxyparagraph{\texorpdfstring{rs\_bzero()}{rs\_bzero()}}
{\footnotesize\ttfamily void rs\+\_\+bzero (\begin{DoxyParamCaption}\item[{void $\ast$}]{buf,  }\item[{size\+\_\+t}]{size }\end{DoxyParamCaption})}



Definition at line \mbox{\hyperlink{util_8c_source_l00033}{33}} of file \mbox{\hyperlink{util_8c_source}{util.\+c}}.

\mbox{\label{util_8h_add2085b415e70afd959ee3e6d99ae853}} 
\index{util.h@{util.h}!rs\_long\_ln2@{rs\_long\_ln2}}
\index{rs\_long\_ln2@{rs\_long\_ln2}!util.h@{util.h}}
\doxyparagraph{\texorpdfstring{rs\_long\_ln2()}{rs\_long\_ln2()}}
{\footnotesize\ttfamily int rs\+\_\+long\+\_\+ln2 (\begin{DoxyParamCaption}\item[{rs\+\_\+long\+\_\+t}]{v }\end{DoxyParamCaption})}



Definition at line \mbox{\hyperlink{util_8c_source_l00070}{70}} of file \mbox{\hyperlink{util_8c_source}{util.\+c}}.

\mbox{\label{util_8h_a488ab3f5298c2758e211d386a95b42d9}} 
\index{util.h@{util.h}!rs\_long\_sqrt@{rs\_long\_sqrt}}
\index{rs\_long\_sqrt@{rs\_long\_sqrt}!util.h@{util.h}}
\doxyparagraph{\texorpdfstring{rs\_long\_sqrt()}{rs\_long\_sqrt()}}
{\footnotesize\ttfamily int rs\+\_\+long\+\_\+sqrt (\begin{DoxyParamCaption}\item[{rs\+\_\+long\+\_\+t}]{v }\end{DoxyParamCaption})}



Definition at line \mbox{\hyperlink{util_8c_source_l00079}{79}} of file \mbox{\hyperlink{util_8c_source}{util.\+c}}.

