\hypertarget{parser_8h}{\section{parser.\-h File Reference}
\label{parser_8h}\index{parser.\-h@{parser.\-h}}
}


Functions to parse arguments from user.  


\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{parser_8h_ad6354cfce45bf002a999b83c6ae25b0c}{F\-R\-E\-E\-\_\-\-I\-N\-T\-S}(p)~\hyperlink{parser_8h_a4dd0d75564748ba07a90d0887c8af97a}{free\-\_\-ints}(p); p=N\-U\-L\-L;
\begin{DoxyCompactList}\small\item\em Frees the memory allocated by strings\-\_\-to\-\_\-ints and sets the pointer to N\-U\-L\-L. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
int $\ast$ \hyperlink{parser_8h_a3e1c016a9cc25ab768b83b5840770009}{strings\-\_\-to\-\_\-ints} (int size, char $\ast$$\ast$int\-\_\-strings)
\begin{DoxyCompactList}\small\item\em Given an 'array' of int in string format, this function returns a list of intgers. \end{DoxyCompactList}\item 
void \hyperlink{parser_8h_a4dd0d75564748ba07a90d0887c8af97a}{free\-\_\-ints} (int $\ast$p)
\begin{DoxyCompactList}\small\item\em Frees the memory allocated by strings\-\_\-to\-\_\-ints. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Functions to parse arguments from user. \begin{DoxyAuthor}{Author}
Henrik Sandklef 
\end{DoxyAuthor}
\begin{DoxyDate}{Date}
25 Nov 2015 
\end{DoxyDate}


\subsection{Macro Definition Documentation}
\hypertarget{parser_8h_ad6354cfce45bf002a999b83c6ae25b0c}{\index{parser.\-h@{parser.\-h}!F\-R\-E\-E\-\_\-\-I\-N\-T\-S@{F\-R\-E\-E\-\_\-\-I\-N\-T\-S}}
\index{F\-R\-E\-E\-\_\-\-I\-N\-T\-S@{F\-R\-E\-E\-\_\-\-I\-N\-T\-S}!parser.h@{parser.\-h}}
\subsubsection[{F\-R\-E\-E\-\_\-\-I\-N\-T\-S}]{\setlength{\rightskip}{0pt plus 5cm}\#define F\-R\-E\-E\-\_\-\-I\-N\-T\-S(
\begin{DoxyParamCaption}
\item[{}]{p}
\end{DoxyParamCaption}
)~{\bf free\-\_\-ints}(p); p=N\-U\-L\-L;}}\label{parser_8h_ad6354cfce45bf002a999b83c6ae25b0c}


Frees the memory allocated by strings\-\_\-to\-\_\-ints and sets the pointer to N\-U\-L\-L. 


\begin{DoxyParams}{Parameters}
{\em int} & $\ast$p -\/ memory to free \\
\hline
\end{DoxyParams}


\subsection{Function Documentation}
\hypertarget{parser_8h_a4dd0d75564748ba07a90d0887c8af97a}{\index{parser.\-h@{parser.\-h}!free\-\_\-ints@{free\-\_\-ints}}
\index{free\-\_\-ints@{free\-\_\-ints}!parser.h@{parser.\-h}}
\subsubsection[{free\-\_\-ints}]{\setlength{\rightskip}{0pt plus 5cm}void free\-\_\-ints (
\begin{DoxyParamCaption}
\item[{int $\ast$}]{p}
\end{DoxyParamCaption}
)}}\label{parser_8h_a4dd0d75564748ba07a90d0887c8af97a}


Frees the memory allocated by strings\-\_\-to\-\_\-ints. 


\begin{DoxyParams}{Parameters}
{\em int} & $\ast$p -\/ memory to free \\
\hline
\end{DoxyParams}
\hypertarget{parser_8h_a3e1c016a9cc25ab768b83b5840770009}{\index{parser.\-h@{parser.\-h}!strings\-\_\-to\-\_\-ints@{strings\-\_\-to\-\_\-ints}}
\index{strings\-\_\-to\-\_\-ints@{strings\-\_\-to\-\_\-ints}!parser.h@{parser.\-h}}
\subsubsection[{strings\-\_\-to\-\_\-ints}]{\setlength{\rightskip}{0pt plus 5cm}int$\ast$ strings\-\_\-to\-\_\-ints (
\begin{DoxyParamCaption}
\item[{int}]{size, }
\item[{char $\ast$$\ast$}]{int\-\_\-strings}
\end{DoxyParamCaption}
)}}\label{parser_8h_a3e1c016a9cc25ab768b83b5840770009}


Given an 'array' of int in string format, this function returns a list of intgers. 

\begin{DoxyWarning}{Warning}
\{ This function allocates dynamically. Make sure you free the memory \}
\end{DoxyWarning}

\begin{DoxyParams}{Parameters}
{\em int} & size -\/ number of arguments in \\
\hline
{\em int} & int\-\_\-strings -\/ integers in string format\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
{\ttfamily Pointer} to int (an 'array') 
\end{DoxyReturn}
