\rhead{\bf mc\_DeregisterService()}
\noindent
\vspace{5pt}
\rule{6.5in}{0.015in}
\noindent
\phantomsection
{\LARGE \bf mc\_DeregisterService()\index{mc\_DeregisterService()}}\\
\addcontentsline{toc}{section}{mc\_DeregisterService()}
\label{api:mc_DeregisterService()}

\noindent
{\bf Synopsis}\\
{\bf \#include $<$libmc.h$>$}\\
{\bf int mc\_DeregisterService}({\bf int} agentID, {\bf char*} serviceName);\\

\noindent
{\bf Purpose}\\
Deregisters an agent service from an agency Directory Facilitator.\\

\noindent
{\bf Return Value}\\
The function returns 0 on success and non-zero otherwise.\\

\noindent
{\bf Parameters}
\vspace{-0.1in}
\begin{description}
\item
\begin{tabular}{p{23 mm}p{145 mm}} 
$agentID$ & An agent id. \\
$serviceName$ & The service name to deregister.
\end{tabular}
\end{description}

\noindent
{\bf Description}\\
This function is used to deregister a service associated with an agent
from an agency. The function searches for a service matching the
provided service name and agent id and deregisters it from the
Directory Facilitator. \\

\noindent
{\bf Example}\\
\noindent
{\footnotesize\verbatiminput{../demos/agent_space_functionality/mc_df_example/agent1.xml}}

\noindent
{\bf See Also}\\
MC\_DeregisterService(), mc\_RegisterService().

%\CPlot::\DataThreeD(), \CPlot::\DataFile(), \CPlot::\Plotting(), \plotxy().\\
