\section{jutils.h File Reference}
\label{jutils_8h}\index{jutils.h@{jutils.h}}


\subsection{Detailed Description}
generic utilities

Definition in file {\bf jutils.h}.

{\tt \#include $<$stdio.h$>$}\par
{\tt \#include $<$string.h$>$}\par
\subsection*{Defines}
\begin{CompactItemize}
\item 
\#define {\bf MAX\_\-DEBUG}\ 2\label{jutils_8h_a0}

\item 
\#define {\bf FUNC}\ 2\label{jutils_8h_a1}

\item 
\#define {\bf WARN}\ 1\label{jutils_8h_a2}

\item 
\#define {\bf CHAR\_\-SET}(func, var)
\item 
\#define {\bf INT\_\-SET}(func, var)
\item 
\#define {\bf FLOAT\_\-SET}(func, var)
\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item 
void {\bf set\_\-guimsg} (GUI $\ast$g)\label{jutils_8h_a6}

\item 
void {\bf Muse\-Set\-Debug} (int lev)\label{jutils_8h_a7}

\item 
int {\bf Muse\-Get\-Debug} ()\label{jutils_8h_a8}

\item 
void {\bf Muse\-Set\-Log} (char $\ast$file)\label{jutils_8h_a9}

\item 
void {\bf Muse\-Close\-Log} ()\label{jutils_8h_a10}

\item 
void {\bf notice} (const char $\ast$format,...)\label{jutils_8h_a11}

\item 
void {\bf func} (const char $\ast$format,...)\label{jutils_8h_a12}

\item 
void {\bf error} (const char $\ast$format,...)\label{jutils_8h_a13}

\item 
void {\bf act} (const char $\ast$format,...)\label{jutils_8h_a14}

\item 
void {\bf warning} (const char $\ast$format,...)\label{jutils_8h_a15}

\item 
double {\bf dtime} ()\label{jutils_8h_a16}

\item 
void {\bf jsleep} (int sec, long nsec)\label{jutils_8h_a17}

\item 
int {\bf set\_\-rtpriority} (int max)\label{jutils_8h_a18}

\item 
void {\bf chomp} (char $\ast$str)\label{jutils_8h_a19}

\item 
int {\bf resolve} (char $\ast$host, char $\ast$ip)\label{jutils_8h_a20}

\end{CompactItemize}


\subsection{Define Documentation}
\index{CHAR_SET@{CHAR\_\-SET}!jutils.h@{jutils.h}}\index{jutils.h@{jutils.h}!CHAR_SET@{CHAR\_\-SET}}\index{jutils.h@{jutils.h}!CHAR_SET@{CHAR\_\-SET}}
\index{CHAR_SET@{CHAR\_\-SET}!jutils.h@{jutils.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define CHAR\_\-SET(func, var)}\label{jutils_8h_a3}


{\bf Value:}

\footnotesize\begin{verbatim}char var[MAX_VALUE_SIZE]; \
void func(char *in) { \
if(strncmp(var,in,MAX_VALUE_SIZE)==0) return; \
else strncpy(var,in,MAX_VALUE_SIZE); \
} \
char *func() { return var; };
\end{verbatim}\normalsize 
Macro declaration of parameters 

Definition at line 42 of file jutils.h.\index{FLOAT_SET@{FLOAT\_\-SET}!jutils.h@{jutils.h}}\index{jutils.h@{jutils.h}!FLOAT_SET@{FLOAT\_\-SET}}\index{jutils.h@{jutils.h}!FLOAT_SET@{FLOAT\_\-SET}}
\index{FLOAT_SET@{FLOAT\_\-SET}!jutils.h@{jutils.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define FLOAT\_\-SET(func, var)}\label{jutils_8h_a5}


{\bf Value:}

\footnotesize\begin{verbatim}float var; \
void func(float in) { \
if(var==in) return; \
else var=in; \
} \
float func() { return var; };
\end{verbatim}\normalsize 


Definition at line 58 of file jutils.h.\index{INT_SET@{INT\_\-SET}!jutils.h@{jutils.h}}\index{jutils.h@{jutils.h}!INT_SET@{INT\_\-SET}}\index{jutils.h@{jutils.h}!INT_SET@{INT\_\-SET}}
\index{INT_SET@{INT\_\-SET}!jutils.h@{jutils.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define INT\_\-SET(func, var)}\label{jutils_8h_a4}


{\bf Value:}

\footnotesize\begin{verbatim}int var; \
void func(int in) { \
if(var==in) return; \
else var=in; \
} \
int func() { return var; };
\end{verbatim}\normalsize 


Definition at line 50 of file jutils.h.