\section{Version comparison}
\label{group__version__cmp}\index{Version comparison@{Version comparison}}
\subsection*{Functions}
\begin{CompactItemize}
\item 
int {\bf discover\_\-xml\_\-version\_\-cmp} (char $\ast$range, char $\ast$version, {\bf discover\_\-error\_\-t} $\ast$status)
\end{CompactItemize}


\subsection{Function Documentation}
\index{version_cmp@{version\_\-cmp}!discover_xml_version_cmp@{discover\_\-xml\_\-version\_\-cmp}}
\index{discover_xml_version_cmp@{discover\_\-xml\_\-version\_\-cmp}!version_cmp@{version\_\-cmp}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int discover\_\-xml\_\-version\_\-cmp (char $\ast$ {\em range}, char $\ast$ {\em version}, {\bf discover\_\-error\_\-t} $\ast$ {\em status})}\label{group__version__cmp_ga0}


Compare a version number against a version range, returning 1 if the number matches the range or 0 if not.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em range}]Range to compare against version \item[{\em version}]Version to compare against range \item[{\em status}]Address in which to place status report \end{description}
\end{Desc}


Definition at line 438 of file version-cmp.c.

References discover\_\-error::code, and DISCOVER\_\-EBADVERSION.