\rhead{\bf MC\_End()}
\noindent
\vspace{5pt}
\rule{6.5in}{0.015in}
\noindent
\phantomsection
{\LARGE \bf MC\_End()\index{MC\_End()}}\\
\addcontentsline{toc}{section}{MC\_End()}

\noindent
{\bf Synopsis}\\
{\bf \#include $<$libmc.h$>$}\\
{\bf int MC\_End}({\bf MCAgency\_t} $agency$);\\

\noindent
{\bf Purpose}\\
Terminate a Mobile-C agency.\\

\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{10 mm}p{145 mm}}
$agency$ & A handle to a running agency.
\end{tabular}
\end{description}

\noindent
{\bf Description}\\
This function stops all the running threads in an agency and deallocates all 
the memories regarding an agency.\\

\noindent
{\bf Example}\\
\noindent
{\footnotesize\verbatiminput{../demos/getting_started/hello_world/client.c}}

\noindent
{\bf See Also}\\

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